Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import appuifw,graphics,e32
- def quit():
- global play
- play = 0
- appuifw.app.exit_key_handler = quit
- appuifw.app.screen = 'full'
- appuifw.app.body = c = appuifw.Canvas()
- layar = c.size
- im = graphics.Image.new(layar)
- t1=[10,220]
- t2=[40,200]
- t3=[70,180]
- t4=[100,100]
- t5=[130,50]
- t6=[160,100]
- t7=[190,180]
- t8=[220,200]
- t9=[240,220]
- an=[t1,t2,t3,t4,t5,t6,t7,t8,t9]
- s=0
- d=0
- def animasi():
- global d,s
- if d <= 0:
- d = 6
- s += 1
- if d > 0:d -=1
- if s > len(an)-1:s=0
- im.text((an[s],an[s]),u'hore',0xff00ff,(u'',30))
- play = 1
- while play:
- im.clear(0)
- animasi()
- c.blit(im)
- e32.ao_sleep(0.01)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement