Search code examples
qbasic

QBASIC _PALETTECOLOR problems


Im trying to change the color of the console (WHICH IS POSSIBLE!) with this code:

COLOR 7
PRINT "Color 7 is gray"
K$ = INPUT$(1)
_PALETTECOLOR 7, &HFFDAA520 ' FF alpha makes the color translucent
PRINT "Color 7 is now Goldenrod in SCREEN 0!

However when running it, I get an error Message. Not to mention that the color doesn't change.

What is the proper way to do this?

The code: http://www.qb64.net/wiki/index.php?title=COLOR


Solution

  • Sorry bout the commotion.

    Chrono answered this question.

    You have to run it with QB64, not QBASIC. This code works for QB64, not QBASIC.

    :(