OK @fistfullofnails to print a true square on default screen 0
Here is red square printed with background color 4 into middle of screen:
Here is red square printed with background color 4 into middle of screen:
Code: (Select All)
' a character cell is 8 pixels wide X 16 pixels high
rowStart = 11: rowEnd = 15 ' 5 vertical rows 5 * 16 = 80 pixels
colStart = 36: colEnd = 45 ' 10 columns 10 * 8 = 80 pixels
' 80 pixels X 80- pixels = true square in screen 0
' pick a color 0 to 7 not 0 = default black background say 4
backcolor = 4 ' try different colors here 4 is red
' color forecolor, backcolor '<<< command to control color
Color , backcolor ' set color to 4, now anywhere we print backcolor is red = 4
' color our square on default black background
For row = rowStart To rowEnd
For col = colStart To colEnd
Locate row, col: Print " "; ' print a space at each location of the square
Next
Next
Sleep
b = b + ...