2020-04-23 14:36:47 +02:00
|
|
|
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):
|
2020-04-25 13:09:14 +02:00
|
|
|
sx = x
|
|
|
|
width += sx
|
2020-04-23 14:36:47 +02:00
|
|
|
for v in data:
|
|
|
|
S(x, y, pallet[v])
|
|
|
|
x += 1
|
|
|
|
if x == width:
|
2020-04-25 13:09:14 +02:00
|
|
|
x = sx
|
2020-04-23 14:36:47 +02:00
|
|
|
y += 1
|
|
|
|
R()
|