Looking for everyone's best - Printable Version +- QB64 Phoenix Edition (https://staging.qb64phoenix.com) +-- Forum: QB64 Rising (https://staging.qb64phoenix.com/forumdisplay.php?fid=1) +--- Forum: Code and Stuff (https://staging.qb64phoenix.com/forumdisplay.php?fid=3) +---- Forum: Help Me! (https://staging.qb64phoenix.com/forumdisplay.php?fid=10) +---- Thread: Looking for everyone's best (/showthread.php?tid=510) Pages:
1
2
|
RE: Looking for everyone's best - RhoSigma - 06-02-2022 (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 RE: Looking for everyone's best - mdijkens - 06-02-2022 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 RE: Looking for everyone's best - Pete - 06-02-2022 (06-02-2022, 06:24 PM)mdijkens Wrote: I have Written lots of production grade tools and utils being used daily. Same boat, but I call dibs on the deck chair! Pete |