Here is a little code snipet that draws 10 colored square images then pastes them at random on the screen to show how they look, this could be used for any color match type game where you need a different color square to place on screen etc..
Rem Colorful squares..
for Yp=1 to 32
Cfor=RGB(48+(Yp*6),0,0)
Cbkg=RGB(0,0,0)
ink Cfor,Cbkg
for Xp=1 to 32
Dot Xp, Yp
next Xp
next Yp
for Yp=1 to 24
Cfor=RGB(48+(Yp*6),0,0)
Cbkg=RGB(0,0,0)
ink Cfor,Cbkg
for Xp=1 to 24
Dot Xp+4, 29-Yp
next Xp
next Yp
Get Image 1,1,1,32,32
CLS
for Yp=1 to 32
Cfor=RGB(48+(Yp*6),48+(Yp*3),0)
Cbkg=RGB(0,0,0)
ink Cfor,Cbkg
for Xp=1 to 32
Dot Xp, Yp
next Xp
next Yp
for Yp=1 to 24
Cfor=RGB(48+(Yp*6),48+(Yp*3),0)
Cbkg=RGB(0,0,0)
ink Cfor,Cbkg
for Xp=1 to 24
Dot Xp+4, 29-Yp
next Xp
next Yp
Get Image 2,1,1,32,32
Cls
for Yp=1 to 32
Cfor=RGB(48+(Yp*6),48+(Yp*6),0)
Cbkg=RGB(0,0,0)
ink Cfor,Cbkg
for Xp=1 to 32
Dot Xp, Yp
next Xp
next Yp
for Yp=1 to 24
Cfor=RGB(48+(Yp*6),48+(Yp*6),0)
Cbkg=RGB(0,0,0)
ink Cfor,Cbkg
for Xp=1 to 24
Dot Xp+4, 29-Yp
next Xp
next Yp
Get Image 3,1,1,32,32
Cls
for Yp=1 to 32
Cfor=RGB(48+(Yp*3),48+(Yp*6),0)
Cbkg=RGB(0,0,0)
ink Cfor,Cbkg
for Xp=1 to 32
Dot Xp, Yp
next Xp
next Yp
for Yp=1 to 24
Cfor=RGB(48+(Yp*3),48+(Yp*6),0)
Cbkg=RGB(0,0,0)
ink Cfor,Cbkg
for Xp=1 to 24
Dot Xp+4, 29-Yp
next Xp
next Yp
Get Image 4,1,1,32,32
Cls
for Yp=1 to 32
Cfor=RGB(0,48+(Yp*6),0)
Cbkg=RGB(0,0,0)
ink Cfor,Cbkg
for Xp=1 to 32
Dot Xp, Yp
next Xp
next Yp
for Yp=1 to 24
Cfor=RGB(0,48+(Yp*6),0)
Cbkg=RGB(0,0,0)
ink Cfor,Cbkg
for Xp=1 to 24
Dot Xp+4, 29-Yp
next Xp
next Yp
Get Image 5,1,1,32,32
Cls
for Yp=1 to 32
Cfor=RGB(0,48+(Yp*6),48+(Yp*3))
Cbkg=RGB(0,0,0)
ink Cfor,Cbkg
for Xp=1 to 32
Dot Xp, Yp
next Xp
next Yp
for Yp=1 to 24
Cfor=RGB(0,48+(Yp*6),48+(Yp*3))
Cbkg=RGB(0,0,0)
ink Cfor,Cbkg
for Xp=1 to 24
Dot Xp+4, 29-Yp
next Xp
next Yp
Get Image 6,1,1,32,32
Cls
for Yp=1 to 32
Cfor=RGB(0,48+(Yp*6),48+(Yp*6))
Cbkg=RGB(0,0,0)
ink Cfor,Cbkg
for Xp=1 to 32
Dot Xp, Yp
next Xp
next Yp
for Yp=1 to 24
Cfor=RGB(0,48+(Yp*6),48+(Yp*6))
Cbkg=RGB(0,0,0)
ink Cfor,Cbkg
for Xp=1 to 24
Dot Xp+4, 29-Yp
next Xp
next Yp
Get Image 7,1,1,32,32
Cls
for Yp=1 to 32
Cfor=RGB(0,48+(Yp*3),48+(Yp*6))
Cbkg=RGB(0,0,0)
ink Cfor,Cbkg
for Xp=1 to 32
Dot Xp, Yp
next Xp
next Yp
for Yp=1 to 24
Cfor=RGB(0,48+(Yp*3),48+(Yp*6))
Cbkg=RGB(0,0,0)
ink Cfor,Cbkg
for Xp=1 to 24
Dot Xp+4, 29-Yp
next Xp
next Yp
Get Image 8,1,1,32,32
Cls
for Yp=1 to 32
Cfor=RGB(0,0,48+(Yp*6))
Cbkg=RGB(0,0,0)
ink Cfor,Cbkg
for Xp=1 to 32
Dot Xp, Yp
next Xp
next Yp
for Yp=1 to 24
Cfor=RGB(0,0,48+(Yp*6))
Cbkg=RGB(0,0,0)
ink Cfor,Cbkg
for Xp=1 to 24
Dot Xp+4, 29-Yp
next Xp
next Yp
Get Image 9,1,1,32,32
Cls
for Yp=1 to 32
Cfor=RGB(48+(Yp*3),0,48+(Yp*6))
Cbkg=RGB(0,0,0)
ink Cfor,Cbkg
for Xp=1 to 32
Dot Xp, Yp
next Xp
next Yp
for Yp=1 to 24
Cfor=RGB(48+(Yp*3),0,48+(Yp*6))
Cbkg=RGB(0,0,0)
ink Cfor,Cbkg
for Xp=1 to 24
Dot Xp+4, 29-Yp
next Xp
next Yp
Get Image 10,1,1,32,32
Cls
do
paste image rnd(9)+1,rnd(640),rnd(480),1
loop
Enjoy, and coments are always welcome.
Cheers!