Code: Select all
start:
screen 128
goto loop
loop:
for i=1 to 5
for j=1 to 5
color rnd(1)*15
rect i*25,j*25,i+15, j+15
next j
next i
goto loop
Code: Select all
start:
screen 128
goto loop
loop:
for i=1 to 5
for j=1 to 5
color rnd(1)*15
rect i*25,j*25,i+15, j+15
next j
next i
goto loop
Color only changes the text mode, also it is limited to the values 0-15.KaiLikesToCode wrote: ↑Tue Jan 09, 2024 9:10 pm I have some code to draw a grid of rects:But using the color command seems to not change the color of the rect color in graphics mode.Code: Select all
start: screen 128 goto loop loop: for i=1 to 5 for j=1 to 5 color rnd(1)*15 rect i*25,j*25,i+15, j+15 next j next i goto loop