I started, many years ago, with GWbasic and then with QB45.
Between the end of the 80s and the beginning of the 90s I had fun programming videogames for my friends.
Then, I left the basic.
A few months ago I found QB64 and thank you for making me go back in years.
I enclose a small routine, which I use to remind me of the numbering of the first 256 colors.
It is not optimized, because I use it only for myself.
Sorry for any errors in English, but my level is just sufficient.
We stay in touch !
------------------------------
handle& = _NEWIMAGE(1000, 600, 256)
SCREEN handle&
CLR = 0
FOR BOX = 1 TO 25
LINE (WLX, WLY)-(WLX + 30, WLY + 30), CLR, BF
CLR = CLR + 1
WLX = WLX + 34
NEXT BOX
WLX = 0
FOR BOX = 1 TO 25
LINE (WLX, WLY + 40)-(WLX + 30, WLY + 70), CLR, BF
CLR = CLR + 1
WLX = WLX + 34
NEXT BOX
WLX = 0
FOR BOX = 1 TO 25
LINE (WLX, WLY + 80)-(WLX + 30, WLY + 110), CLR, BF
CLR = CLR + 1
WLX = WLX + 34
NEXT BOX
WLX = 0
FOR BOX = 1 TO 25
LINE (WLX, WLY + 120)-(WLX + 30, WLY + 150), CLR, BF
CLR = CLR + 1
WLX = WLX + 34
NEXT BOX
WLX = 0
FOR BOX = 1 TO 25
LINE (WLX, WLY + 160)-(WLX + 30, WLY + 190), CLR, BF
CLR = CLR + 1
WLX = WLX + 34
NEXT BOX
WLX = 0
FOR BOX = 1 TO 25
LINE (WLX, WLY + 200)-(WLX + 30, WLY + 230), CLR, BF
CLR = CLR + 1
WLX = WLX + 34
NEXT BOX
WLX = 0
FOR BOX = 1 TO 25
LINE (WLX, WLY + 240)-(WLX + 30, WLY + 270), CLR, BF
CLR = CLR + 1
WLX = WLX + 34
NEXT BOX
WLX = 0
FOR BOX = 1 TO 25
LINE (WLX, WLY + 280)-(WLX + 30, WLY + 310), CLR, BF
CLR = CLR + 1
WLX = WLX + 34
NEXT BOX
WLX = 0
FOR BOX = 1 TO 25
LINE (WLX, WLY + 320)-(WLX + 30, WLY + 350), CLR, BF
CLR = CLR + 1
WLX = WLX + 34
NEXT BOX
WLX = 0
FOR BOX = 1 TO 25
LINE (WLX, WLY + 360)-(WLX + 30, WLY + 390), CLR, BF
CLR = CLR + 1
WLX = WLX + 34
NEXT BOX
WLX = 0
FOR BOX = 1 TO 25
LINE (WLX, WLY + 400)-(WLX + 30, WLY + 430), CLR, BF
CLR = CLR + 1
WLX = WLX + 34
NEXT BOX
WLX = 0
FOR BOX = 1 TO 25
LINE (WLX, WLY + 440)-(WLX + 30, WLY + 470), CLR, BF
CLR = CLR + 1
WLX = WLX + 34
NEXT BOX
WLX = 0
FOR BOX = 1 TO 10
LINE (WLX, WLY + 480)-(WLX + 30, WLY + 510), CLR, BF
CLR = CLR + 1
WLX = WLX + 34
NEXT BOX
JH:
WLX = 2: WLY = 0
LOCATE 34, 3: INPUT A
'LINE (WLX + (A + 4), WLY + 22)-(WLX + (A + 6), WLY + 27), 14, B
LINE (270, 150)-(370, 250), A, BF
LINE (0, 300)-(30, 330), A + 1, BF
LINE (40, 300)-(70, 330), A + 2, BF
LINE (80, 300)-(110, 330), A + 3, BF
LINE (120, 300)-(150, 330), A + 4, BF
LINE (160, 300)-(190, 330), A + 5, BF
LINE (200, 300)-(230, 330), A + 6, BF
LINE (240, 300)-(270, 330), A + 7, BF
LINE (280, 300)-(310, 330), A + 8, BF
GOTO JH