As most of you guys know, I've got a 32-bit color library with which I've collected all sorts of color values and names from the net and various places in the past, which I use with QB64. It's an essential component for my coding style, and I use it constantly -- for almost everything!!
As I was working on QB64.bas earler, to fix the glitch in the CONST math routines (here:
https://www.qb64.org/forum/index.php?topic=1554.0 ), I thought I'd go ahead and take a few moments to see how complex it'd be to add those CONST values into QB64, for ease of use via a MetaCommand... What I've came up with is in the QB64.bas file attached below.
Download the file.
Extract it to your QB64\source folder.
Use QB64.exe to open the file and compile it, and create yourself a QB64(2).exe.
You should be able to use that new exe to do things as simple as:
$COLOR32
LINE (100, 100)-(200, 200), Red
, BF
LINE (200, 200)-(300, 300), Gold
, BF
With one command, all those color values get added automatically into your CONST list, without requiring an external file or the parsing of an $INCLUDE library.
It's an easy enough change for me to make with QB64, if you guys would be interested in it -- after all, the work's already finished on it; all I'd have to do is push the changes into the repo...
My question is: Would folks be interested in being able to add those values to a program with a simple $COLOR32 metacommand? Or, is this one of those features which it seems like I'm the only person around enjoys, and which I'll just script to push quickly into my personal version which I code with?