81 |
print "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!Time of", iters, "renders:", t, "s" |
print "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!Time of", iters, "renders:", t, "s" |
82 |
|
|
83 |
|
|
84 |
zoom = [100, 500, 650, 800, 2000] |
zoom = [100.0, 500.0, 650.0, 800.0, 2000.0] |
85 |
paperzoom = [2, 10, 33, 100] |
#paperzoom = [2, 10, 33, 100] |
86 |
|
#paperzoom = [0.2, 1, 3, 0.05] |
87 |
|
paperzoom = [100.0, 200.0, 400.0, 800.0] |
88 |
|
|
89 |
passmask = [1,1,1,1] |
passmask = [1,1,1,1] |
90 |
|
|
226 |
putnoc(vs, background(self.bgcolor)) |
putnoc(vs, background(self.bgcolor)) |
227 |
|
|
228 |
scale = zoom[0] / paperzoom[0] |
scale = zoom[0] / paperzoom[0] |
229 |
cs2 = vs.coords.affineCoordsys(0, "tex", 1, 400, 400, scale, 0, 0, scale) |
cs2 = vs.coords.affineCoordsys(0, 1, 400, 400, scale, 0, 0, scale) |
230 |
|
vs.matcher.add(cs2, "tex") |
231 |
|
|
232 |
cs1 = range(0,self.w*self.h) |
cs1 = range(0,self.w*self.h) |
233 |
for i in range(0,self.w*self.h): |
for i in range(0,self.w*self.h): |
234 |
if i >= len(self.pq): break |
if i >= len(self.pq): break |
235 |
cs1[i] = vs.coords.affineCoordsys(0, str(i), 100-i, |
cs1[i] = vs.coords.affineCoordsys(0, 100-i, |
236 |
(i%self.w+.5)*1200.0/self.w, |
(i%self.w+.5)*1200.0/self.w, |
237 |
(i/self.w+.5)*900.0/self.h, |
(i/self.w+.5)*900.0/self.h, |
238 |
.47*1200.0/self.w, 0, |
.47*1200.0/self.w, 0, |
239 |
0, .47*900.0/self.h) |
0, .47*900.0/self.h) |
240 |
|
vs.matcher.add(cs1[i], str(i)) |
241 |
|
|
242 |
vs.map.put(self.pq[i], cs1[i], cs2) |
vs.map.put(self.pq[i], cs1[i], cs2) |
243 |
putText(vs, cs1[i], str(self.seed + i), color=(0,0,0), x=-1,y=1,z=-1,w=.01, h=.01) |
putText(vs, cs1[i], str(self.seed + i), color=(0,0,0), x=-1,y=1,z=-1,w=.01, h=.01) |