Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import appuifw as A
- import graphics
- run=1
- def stop():
- global run
- run=0
- A.app.screen='full'
- A.app.body=c=A.Canvas()
- A.app.exit_key_handler=stop
- w,h=c.size
- img=graphics.Image.new((w,h))
- def grad():
- for i in xrange(h):
- img.line((0,i,w,i),(0,i,0))
- while run:
- grad()
- c.blit(img)
- A.e32.ao_sleep(1e-04)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement