RosettaCodeData/Task/Colour-pinstripe-Display/QBasic/colour-pinstripe-display.basic

16 lines
246 B
Text
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
SCREEN 12
w = 640: h = 480
2024-11-04 20:28:54 -08:00
h = h \ 4
2023-07-01 11:58:00 -04:00
y2 = h - 1
FOR i = 1 TO 4
col = 0
y = (i - 1) * h
FOR x = 1 TO w STEP i
IF col MOD 15 = 0 THEN col = 0
LINE (x, y)-(x + i, y + h), col, BF
col = col + 1
NEXT x
NEXT i