Home My Page Projects Code Snippets Project Openings diderot
Summary Activity Tracker Tasks SCM

SCM Repository

[diderot] Diff of /branches/vis12/test/mandel.diderot
ViewVC logotype

Diff of /branches/vis12/test/mandel.diderot

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

branches/vis12/test/mandl.diderot revision 1893, Mon May 28 05:36:29 2012 UTC branches/vis12/test/mandel.diderot revision 1894, Mon May 28 05:46:56 2012 UTC
# Line 1  Line 1 
1  // ../bin/diderotc --exec mandl.diderot && ./mandl && unu quantize -b 8 -i rgb.nrrd -o mandl.png  // ../bin/diderotc --exec mandel.diderot && ./mandel && unu quantize -b 8 -i rgb.nrrd -o mandel.png
2    
3  // Global definitions  // Global definitions
4  input int reso = 800;  input int reso = 800;
5  input int maxiter = 1000;  input int maxiter = 1000;
6    
7  // Strand definition  // Strand definition
8  strand mandl(int crIdx, int ciIdx) {  strand mandel(int crIdx, int ciIdx) {
9     vec2 c = [lerp(-2.0, 2.0, 1.0, real(crIdx), real(reso)),     vec2 c = [lerp(-2.0, 2.0, 1.0, real(crIdx), real(reso)),
10               lerp(-2.0, 2.0, 1.0, real(ciIdx), real(reso))];               lerp(-2.0, 2.0, 1.0, real(ciIdx), real(reso))];
11     vec2 z = [0.0, 0.0];     vec2 z = [0.0, 0.0];
# Line 29  Line 29 
29  }  }
30    
31  // Strand initialization  // Strand initialization
32  initially [ mandl(crIdx, ciIdx) | ciIdx in 1..reso, crIdx in 1..reso ];  initially [ mandel(crIdx, ciIdx) | ciIdx in 1..reso, crIdx in 1..reso ];

Legend:
Removed from v.1893  
changed lines
  Added in v.1894

root@smlnj-gforge.cs.uchicago.edu
ViewVC Help
Powered by ViewVC 1.0.0