mirror of
https://github.com/dyne/FreeJ.git
synced 2026-02-06 13:09:15 +01:00
25 lines
385 B
Python
25 lines
385 B
Python
import freej
|
|
import time
|
|
import sys
|
|
freej.set_debug(3)
|
|
|
|
# init context
|
|
cx = freej.Context()
|
|
cx.init(400,300,0,0)
|
|
cx.config_check("keyboard.js")
|
|
cx.plugger.refresh(cx)
|
|
|
|
# add a layer
|
|
lay = freej.create_layer(cx,sys.argv[1])
|
|
lay.start()
|
|
lay.add_filter(cx.filters["vertigo"])
|
|
lay.active = True
|
|
cx.add_layer(lay)
|
|
|
|
# main loop
|
|
while True:
|
|
cx.cafudda(1.0)
|
|
time.sleep(0.04)
|
|
time.sleep(10)
|
|
|