Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import e32
- from appuifw import*
- from graphics import*
- from sysinfo import display_pixels as px
- def quit():
- global run
- run=0
- app.exit_key_handler=quit
- app.screen='full'
- app.body=c=Canvas()
- sz=px()
- im=Image.new(sz)
- pic=Image.open('e:\\As.png')
- n = [0,0]
- def gerak():
- if n[0]<sz:
- n[0] += 0.5
- n[1] -= 1
- def gambar():
- im.blit(pic,target=(n[0]-5,40))
- run = 1
- while run:
- im.clear(0)
- gerak()
- gambar()
- c.blit(im)
- e32.ao_yield()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement