SCM Repository
[diderot] / branches / vis12 / bugs / bug001.diderot |
View of /branches/vis12/bugs/bug001.diderot
Parent Directory
|
Revision Log
Revision 2146 -
(download)
(annotate)
Sun Feb 17 03:54:05 2013 UTC (8 years, 2 months ago) by glk
File size: 883 byte(s)
Sun Feb 17 03:54:05 2013 UTC (8 years, 2 months ago) by glk
File size: 883 byte(s)
bugs, and a place to move the files once they've been fixed
// Global definitions input int reso = 2000; // BUG: maxiter isn't used in the program below, // bug that is no reason to not allow setting it // in the command-line interface; removing large // chunks of code is standard when trying to isolate // a bug, and changing the command-line interface // even though all the inputs are the same is a // bad surprise. input int maxiter = 1000; input vec2 center = [0,0]; input real fov = 2; // Strand definition strand mandel(vec2 c) { vec2 z = c; int iter = 0; output vec3 rgb = [0, 0, 0]; update { print(c, "\n"); stabilize; } } // Strand initialization initially [ mandel([lerp(center[0]-fov, center[0]+fov, 1, realIdx, reso), lerp(center[1]-fov, center[1]+fov, 1, compIdx, reso)]) | compIdx in 1..reso, realIdx in 1..reso ];
root@smlnj-gforge.cs.uchicago.edu | ViewVC Help |
Powered by ViewVC 1.0.0 |