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

revision 1974, Sun Jul 15 22:59:41 2012 UTC revision 2143, Sat Feb 16 13:58:52 2013 UTC
# Line 17  Line 17 
17  input vec2 center = [-1.2, -0.3]; // [0.0,0.0] for whole thing  input vec2 center = [-1.2, -0.3]; // [0.0,0.0] for whole thing
18  input real fov = 0.16; // 2.0 for whole thing  input real fov = 0.16; // 2.0 for whole thing
19    
20    function real coord (real x, int idx) = lerp(x - fov, x + fov, 1, idx, reso);
21    
22  // Strand definition  // Strand definition
23  strand mandel (vec2 c) {  strand mandel (vec2 c) {
24     vec2 z = [0, 0];     vec2 z = [0, 0];
# Line 40  Line 42 
42  }  }
43    
44  // Strand initialization  // Strand initialization
45  initially [ mandel([lerp(center[0]-fov, center[0]+fov, 1, crIdx, reso),  initially [ mandel([coord(center[0], crIdx), coord(center[1], ciIdx)])
                     lerp(center[1]-fov, center[1]+fov, 1, ciIdx, reso)])  
46              | ciIdx in 1..reso, crIdx in 1..reso ];              | ciIdx in 1..reso, crIdx in 1..reso ];

Legend:
Removed from v.1974  
changed lines
  Added in v.2143

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