I want to use it in programs that use the 256 colors of VGA Annex, but for testing I have limited myself to the 24 named colors.
I have programmed and executed this:
Code: [Local Link Removed for Guests]
' Annex32-S3 CAN DMT VGA 1.51.2 qio opi LFS
vga.delete
vga.init 2
vga.fill white
vga.show
i = 1 : fill = 0
for y = 140 to 300 step 80
for x = 8 to 565 step 78
READ c$
command "fill = vga.color(" + c$ + ")"
vga.rect x, y, 76, 76, black
vga.rect x+1, y+1, 74, 74, fill, 1
px = vga.getPixel(x+10, y+10)
wlog c$, fill, px, fill-px
incr i
next x
next y
vga.show
END
DATA "black","navy","blue","darkgreen","darkcyan","green","cyan","maroon"
DATA "purple","olive","darkgrey","skyblue","violet","brown","greenyellow","silver"
DATA "lightgrey","red","magenta","orange","pink","gold","yellow","white"
I don't see a clear relationship between them. And, furthermore, in the colors Silver and lightGrey it returns the same result.
How is it used?