QB64.org Forum
Active Forums => QB64 Discussion => Topic started by: Joshua on December 30, 2018, 09:16:37 pm
-
Is the max number of color attributes still 256 (Screen 13), or are there new screen modes with more?
I have some onscreen objects that I want to react to light sources by using PALETTE to change their color/brightness. I'm using PALETTE because I assume this is faster than redrawing everything with new color values (using PSET, LINE, CIRCLE, etc). Using PALETTE this way I'm limited to 256 individual objects on screen.
Or is there a newer better way to change the color of onscreen objects, without redrawing them?
I haven't fully explored all the new graphical offerings, or even the old ones for that matter.
-
SCREEN _NEWIMAGE(width, height, 32)
Set width and height to your custom value, and that 32 says you’ll be using 32-bit color values, which are described with _RGBA32(Red, green, blue, alpha) values of 0 to 255.
-
I just noticed the _CLEARCOLOR statement, this could be a game changer