Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
QB's default palette.
#1
Is there a way I can get the numerical values for QB's default palette?
Reply
#2
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?
img]http://b.domaindlx.com/cygh/mycophob3.gif[/img]
Reply
#3
Yep, exactly. Thanks a lot... Smile And welcome to QBNews.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)