Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
suggestion for Color, $COLOR:0, $COLOR:32 pages
#11
(05-01-2025, 11:19 PM)PhilOfPerth Wrote: Probably over-simplistic, but for my progs, I just add 3 or 4 Subs that define the colours I want to use:
...
Sub Red: 
Color _rgb(255,0,0)
End Sub
...
Works for me!  Smile

Ha! Well that's just the thing, with this nifty feature

$COLOR:0

and

$COLOR:32

we don't have to do that anymore!
That means you can do MORE with LESS code! Yay!  Smile

I just brought up the suggestion to mention this from, or it seems better to link to -with context- from the Color page, because without that clue, I wouldn't know about it. I only knew to look for it after noticing people using color names in their code without having made a function. But when I tried it, it didn't work, so that's when I searched and found the wiki page on it. Which led to this whole thread! Tongue

I have to say, it is nice that this language is evolving and cool little features like that pop up, because it does make life easier!
Reply
#12
(05-01-2025, 11:47 PM)madscijr Wrote:
(05-01-2025, 11:19 PM)PhilOfPerth Wrote: Probably over-simplistic, but for my progs, I just add 3 or 4 Subs that define the colours I want to use:
...
Sub Red: 
Color _rgb(255,0,0)
End Sub
...
Works for me!  Smile

Ha! Well that's just the thing, with this nifty feature

$COLOR:0

and

$COLOR:32

we don't have to do that anymore!
That means you can do MORE with LESS code! Yay!  Smile

I just brought up the suggestion to mention this from, or it seems better to link to -with context- from the Color page, because without that clue, I wouldn't know about it. I only knew to look for it after noticing people using color names in their code without having made a function. But when I tried it, it didn't work, so that's when I searched and found the wiki page on it. Which led to this whole thread! Tongue

I have to say, it is nice that this language is evolving and cool little features like that pop up, because it does make life easier!

I have to admit, I hadn't come across $Color:anything, and it never occurred to me that this was available. Yes, I think it should be more prominent in the Wiki.
Still, I think I'll persist with my method: I can name the colour anything I like, like GoldfishOrange or something, and I can have any hue that I like; and it actually takes less typing (in the main prgramme) than $Color:32 and then Color whatever if I can remember what the color was called.
Of all the places on Earth, and all the planets in the Universe, I'd rather live here (Perth, Western Australia.) Big Grin
Please visit my Website at: http://oldendayskids.blogspot.com/
Reply
#13
If you guys haven't noticed $COLOR, you haven't looked at many of the samples on the forums here.  It's used by tons of folks and in tons of samples.  Do a search and see how many examples of it there are here on the forum.  Tongue
Reply
#14
(05-02-2025, 12:43 AM)SMcNeill Wrote: If you guys haven't noticed $COLOR, you haven't looked at many of the samples on the forums here.  It's used by tons of folks and in tons of samples.  Do a search and see how many examples of it there are here on the forum.  Tongue
Well that's just how I came across it - in the forums, and NOT the wiki! 
Big Grin
Reply




Users browsing this thread: 1 Guest(s)