1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
|
import threading
import freej
import time
import sys
#freej.set_debug(3)
# init context
cx = freej.Context()
cx.init()
#cx.init(400,300,0,0)
scr = freej.SdlScreen()
scr.init( 400, 300 , 32);
cx.add_screen(scr)
cx.config_check("keyboard.js")
cx.plugger.refresh(cx)
# add a layer
# lay = freej.create_layer(cx,sys.argv[1])
lay = cx.open(sys.argv[1])
filt = cx.filters["vertigo"]
lay.add_filter(filt)
lay.start()
lay.active = True
cx.add_layer(lay)
th = threading.Thread(target = cx.start , name = "freej")
th.start();
# th.join();
|