06-02-2022, 08:11 AM
(06-02-2022, 04:47 AM)triggered Wrote: Do the old colors like "COLOR 4" work with new screen modes? Had trouble there.
So you found _NEWIMAGE already:
As long as you stay in the 8-bit range, so up to _NEWIMAGE (xw,yw,256), the COLOR command works and it should also be the same colors as known from SCREEN 0.
If you work with 32-bit screens, so _NEWIMAGE(xw,yw,32), the COLOR command works to, but needs a 32-bit ARGB value, rather than just a simple pen number (which is also required for all other commands, which expect a color pen number regularly, eg. PSET, LINE, CIRCLE etc.)
Those ARGB values can be easily mixed with the _RGB32 function.
For both, pen numbers and ARGB colors, we have also predefined color name constants, which you can insert in your programs by using the $COLOR metacommand.
Here some Wiki links:
https://qb64phoenix.com/qb64wiki/index.php/NEWIMAGE
https://qb64phoenix.com/qb64wiki/index.php/RGB32
https://qb64phoenix.com/qb64wiki/index.php/$COLOR
GuiTools, Blankers & other Projects:
https://staging.qb64phoenix.com/forumdisplay.php?fid=32
Libraries & useful Functions:
https://staging.qb64phoenix.com/forumdisplay.php?fid=23
https://staging.qb64phoenix.com/forumdisplay.php?fid=32
Libraries & useful Functions:
https://staging.qb64phoenix.com/forumdisplay.php?fid=23