These are functions I made a while back for storing numbers up to 65536 on the graphics screen, despite the color buffer
COMMON DEF GNSET X%, Y%, N% 'Stops if number is out of range IF N%>65536 OR N%<0 THEN STOP VAR A% = N% MOD 2 VAR R% = FLOOR(N% / 2) MOD 32 VAR G% = FLOOR(N% / (32*2)) MOD 32 VAR B% = FLOOR(N% / (32 * 32 *2)) MOD 32 GPSET X%, Y%, RGB(A% * 255, R% * 8, G% * 8, B% * 8) END COMMON DEF GNFILL X%, Y%, X2%, Y2%, N% 'Stops if number is out of range IF N%>65536 OR N%<0 THEN STOP VAR A% = N% MOD 2 VAR R% = FLOOR(N% / 2) MOD 32 VAR G% = FLOOR(N% / (32*2)) MOD 32 VAR B% = FLOOR(N% / (32 * 32 *2)) MOD 32 GFILL X%, Y%, X2%, Y2%, RGB(A%, R% * 8, G% * 8, B% * 8) END COMMON DEF GNSPOIT(X%, Y%) VAR A%, R%, G%, B%, T% RGBREAD GSPOIT(X%, Y%) OUT A%, R%, G%, B% T% = 0 INC T%, A%>1 INC T%, R%/8 * 2 INC T%, (G%/8) * 32 * 2 INC T%, (B%/8) * 32 * 32 * 2 RETURN T% ENDSnail helped me realize that I could double the number with the alpha channel, and I feel he deserves credit for that.