demo-04-20/draw.py

14 lines
271 B
Python
Raw Normal View History

from casioplot import set_pixel as S
from casioplot import show_screen as R
2020-04-25 11:16:34 +02:00
def draw(x, y, data, pallet, width):
sx = x
width += sx
for v in data:
S(x, y, pallet[v])
x += 1
if x == width:
x = sx
y += 1
R()