demo-04-20/draw.py

12 lines
243 B
Python

from casioplot import set_pixel as S
from casioplot import show_screen as R
def draw(x, y, data, pallet, width):
for v in data:
S(x, y, pallet[v])
x += 1
if x == width:
x = 0
y += 1
R()