Looking for everyone's best
#11
(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
Reply


Messages In This Thread
Looking for everyone's best - by triggered - 06-01-2022, 09:18 AM
RE: Looking for everyone's best - by bplus - 06-01-2022, 01:59 PM
RE: Looking for everyone's best - by triggered - 06-01-2022, 02:59 PM
RE: Looking for everyone's best - by RhoSigma - 06-01-2022, 05:04 PM
RE: Looking for everyone's best - by bplus - 06-01-2022, 05:24 PM
RE: Looking for everyone's best - by RhoSigma - 06-01-2022, 06:37 PM
RE: Looking for everyone's best - by Jack - 06-01-2022, 06:08 PM
RE: Looking for everyone's best - by bplus - 06-01-2022, 06:53 PM
RE: Looking for everyone's best - by Pete - 06-02-2022, 04:25 AM
RE: Looking for everyone's best - by triggered - 06-02-2022, 04:47 AM
RE: Looking for everyone's best - by RhoSigma - 06-02-2022, 08:11 AM
RE: Looking for everyone's best - by mdijkens - 06-02-2022, 06:24 PM
RE: Looking for everyone's best - by Pete - 06-02-2022, 06:47 PM



Users browsing this thread: 3 Guest(s)