1. How do I change the palette back after I loaded bmp and when i loaded it the palette was changed.
2. How do I stop flickering when I use get and put to move an object?
3. How do I make a dir list box?
Printable View
1. How do I change the palette back after I loaded bmp and when i loaded it the palette was changed.
2. How do I stop flickering when I use get and put to move an object?
3. How do I make a dir list box?
what r u talking about... qB?
Qbasic
In Screen 13
You may usthe PALETTE function to change the palette values.
syntax:
PALETTE Color(0 to 255 in screen 13),NewColor
NewColor is a LONG variable that contains the RGB Color
but you can only use 262144 Colors.
(That means tha the maximum value of red,green or blue is not 255 but 64.)
To get the color value use this:
red + green*256 + blue*65535
the valiables red,green and blue contains a value between 0 and 64.
For example 64 + 64*256 + 64*65535 returns white.