Author Topic: color names  (Read 125 times)

0 Members and 1 Guest are viewing this topic.

Offline troflip

color names
« on: October 20, 2017, 12:42:43 AM »
Any idea why Brian used the odd color names he did in the code (For SCI0)? e.g. fuchsia, purple, maroon... when the actual color names are well known?  ( https://en.wikipedia.org/wiki/Enhanced_Graphics_Adapter#Color_palette - and presumably the names used in AGI too )





Check out my website: http://icefallgames.com
Groundhog Day Competition

Offline Kawa

Re: color names
« Reply #1 on: October 20, 2017, 04:59:57 AM »
It's what various other programs call them? For example, anything that uses the Font common dialog with colors enabled. And there's the KnownColors enum in .Net.

Though I'd like to note that while MS calls that one color "olive", Brian calls it "brown" which is in fact more correct for EGA.

Also, what is "actual" here? You'll notice #7 and 8 have two names. Plus, the MS naming scheme has short, one-word names for all 16.

Edit: Sierra calls them cBLACK cBLUE cGREEN cCYAN cRED cMAGENTA cBROWN cLGREY cGREY cLBLUE cLGREEN cLCYAN cLRED cLMAGENTA cYELLOW cWHITE. There's another two lists with v and p instead, being indices instead of bits.
« Last Edit: October 20, 2017, 05:03:46 AM by Kawa »

Offline lskovlun

Re: color names
« Reply #2 on: October 20, 2017, 09:57:39 AM »
For what it's worth, the Delphi type is similar, even though Delphi has a strong forerunner in DOS text UI, Turbo Vision:
http://docs.embarcadero.com/products/rad_studio/radstudio2007/RS2007_helpupdates/HUpdate3/EN/html/delphivclwin32/Graphics_TColor.html

Offline Kawa

Re: color names
« Reply #3 on: October 20, 2017, 10:39:35 AM »
Oh gods not Turbo Vision. What other framework lets you do this?


"~G~ree~t~ing...". It's a goddamned toggle :'(

Offline troflip

Re: color names
« Reply #4 on: October 20, 2017, 12:47:33 PM »
Yeah, I'm wondering why they're named as such, given that the "official" EGA names (on wikipedia) exactly match those of Sierra ( cBLACK cBLUE cGREEN cCYAN cRED cMAGENTA cBROWN cLGREY cGREY cLBLUE cLGREEN cLCYAN cLRED cLMAGENTA cYELLOW cWHITE), and I could find no reference to the names Brian used anywhere. I guess he just made them up? What does AGI use, or does it depend on the IDE?

They aren't the names used in the font dialog... olive and aqua are different. Not are the colors the same (blue, olive and red look way different).

I guess it doesn't really matter, but I die a little inside whenever I use red, which isn't really red. And navy looks more like blue than blue.
« Last Edit: October 20, 2017, 12:53:35 PM by troflip »
Check out my website: http://icefallgames.com
Groundhog Day Competition

Offline Kawa

Re: color names
« Reply #5 on: October 20, 2017, 04:19:59 PM »
What even are the official names? What makes Wikipedia's so official? Can Wikipedia's be official when it lists multiple names for certain colors? Where did I put my IBM documentation!?

Ah, there it is.

« Last Edit: October 20, 2017, 04:26:31 PM by Kawa »

Offline lskovlun

Re: color names
« Reply #6 on: October 20, 2017, 04:37:41 PM »
Ah, the old IBM PC manuals. My school used to have the one with the BIOS listing and commentary in it. I'm kind of bummed I didn't snatch it while I could; they absolutely did not have expertise to use it. It probably went in the trash, unfortunately. They also had the original PC, which was fun as a plaything, but not much else. It was locked in a little-used room.


SMF 2.0.11 | SMF © 2015, Simple Machines
Simple Audio Video Embedder

Page created in 0.19 seconds with 22 queries.