1 |
from __future__ import nested_scopes |
from __future__ import nested_scopes |
2 |
|
|
3 |
from types import ClassType |
from types import ClassType |
4 |
|
from gfx.libutil import saveanim |
5 |
|
|
6 |
# Jython doesn't have boolean. (future?) |
# Jython doesn't have boolean. (future?) |
7 |
False = 0 |
False = 0 |
78 |
if k == "f": # as fork |
if k == "f": # as fork |
79 |
MultiPaperScene.has_dual_papers = not MultiPaperScene.has_dual_papers |
MultiPaperScene.has_dual_papers = not MultiPaperScene.has_dual_papers |
80 |
print 'Dual papers:', MultiPaperScene.has_dual_papers |
print 'Dual papers:', MultiPaperScene.has_dual_papers |
81 |
|
if k == "p": |
82 |
|
makeScreenshots() |
83 |
|
|
84 |
def dobenchmark(w, vs): |
def dobenchmark(w, vs): |
85 |
global benchmark |
global benchmark |
414 |
window_resized = 1 |
window_resized = 1 |
415 |
w.setLocation(0,0,1200,900) |
w.setLocation(0,0,1200,900) |
416 |
|
|
417 |
|
def makeScreenshots(): |
418 |
|
ps = MultiPaperScene() |
419 |
|
ps.seed = 199871850 |
420 |
|
ps.initpaper() |
421 |
|
vs = w.createVobScene() |
422 |
|
ps.scene(vs) |
423 |
|
w.renderStill(vs, 0) |
424 |
|
saveanim.saveframe("shots/multipaper.png", w) |
425 |
|
|
426 |
|
|
427 |
|
|