diff --git a/draw.py b/draw.py index d581986..1c3fb57 100644 --- a/draw.py +++ b/draw.py @@ -2,10 +2,12 @@ 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 = 0 + x = sx y += 1 R()