⇤ ← Revision 1 as of 2008-02-08 04:39:04
Size: 731
Comment:
|
Size: 1022
Comment:
|
Deletions are marked like this. | Additions are marked like this. |
Line 8: | Line 8: |
== multiple ViewPorts == try { vp = new ViewPort(300,200,":0"); add_layer(vp); } catch (e) { echo("Shit: " + e); } ViewPort has all layer methods(!) so use .zoom() and .set_position() or ctrl-a in the console ;) Hacking in progress in my freej_91 branch MrGoil |
get_width()
Is it possible to get the screen width and height from a js script?
If it isn't possible at the moment, where should I add this functionality? screen_get_width/screen_get_height as GLOBALS?
No, that's really missing ...
multiple ViewPorts
try {
vp = new ViewPort(300,200,":0"); add_layer(vp);
} catch (e) {
- echo("Shit: " + e);
} ViewPort has all layer methods(!) so use .zoom() and .set_position() or ctrl-a in the console
Hacking in progress in my freej_91 branch
blit layer to layer
Every Layer gets the method to blit another Layer on it once. A script might look like:
i=new ImageLayer("lol.png") i.zoom(3,2); g=new GeoLayer() // or how about VideoLayer() and apply alpha masks add_layer(g) g.put(i, x, y)
Now it would be nice if the current blit of i would be applied but here the blitter code must be reworked. Also applying filter once would be nice so after the i.zoom do a i.filter("blur") ....