Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from appuifw import app,Canvas
- from graphics import Image
- from e32 import ao_sleep as a0
- from random import randint
- def quit():global run;run=0
- app.exit_key_handler=quit
- app.screen = 'full'
- app.body = c = Canvas()
- ly=c.size
- im=Image.new(ly)
- acak=0xffffff
- def gambar():
- im.point((50,50),0xff00ff,width=50)
- im.rectangle((10,90,200,200),fill=0xffff00)
- im.line((10,10,200,10),0x00ff00,width=5)
- im.polygon((133,70,200,70,167,30),fill=0xffffff)
- im.ellipse((100,20,120,75),fill=0x00f0f0)
- run=1
- while run:
- acak=randint(0,0xffffff)
- im.clear(acak)
- gambar()
- c.blit(im)
- a0(1)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement