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
#12
I have Written lots of production grade tools and utils being used daily.
But these are very specific and of little use to others.
I sometimes publish parts here to help others with specific questions
45y and 2M lines of MBASIC>BASICA>QBASIC>QBX>QB64 experience
Reply
#13
(06-02-2022, 06:24 PM)mdijkens Wrote: I have Written lots of production grade tools and utils being used daily.
But these are very specific and of little use to others.
I sometimes publish parts here to help others with specific questions

Same boat, but I call dibs on the deck chair!

Pete
If eggs are brain food, Biden takes his scrambled.
Reply




Users browsing this thread: 4 Guest(s)