Qbasicnews.com

Full Version: QB's default palette.
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Is there a way I can get the numerical values for QB's default palette?
If you're looking for regular Red, Green, and Blue values for colors then you could use something like this:

Code:
OUT &H3C7, colornumber
r% = INP(&H3C9)
g% = INP(&H3C9)
b% = INP(&H3C9)

In the code above, colornumber would be the integer 0 - 255 for the color slot you want to find the values of. r%, g%, and b% are the integer values of the RGB values, a number 0 - 63.

Is this what you're looking for?
Yep, exactly. Thanks a lot... Smile And welcome to QBNews.