(example.py) store_rect demonstration
This commit is contained in:
parent
7cb8ff5541
commit
6768589881
|
@ -18,3 +18,9 @@ raw_sprite.draw(16, 0)
|
|||
#invert raw sprite
|
||||
invert_rect(16, 0, 8, 8)
|
||||
show_screen()
|
||||
#store what we drew
|
||||
copy = store_rect(0, 0, 64, 64)
|
||||
#draw it again, twice
|
||||
copy.draw(64, 0)
|
||||
copy.draw(0, 64)
|
||||
show_screen()
|
||||
|
|
Loading…
Reference in New Issue