demo-04-20/draw.py

14 lines
271 B
Python

from casioplot import set_pixel as S
from casioplot import show_screen as R
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()