Community

SCI Programming => SCI Syntax Help => Topic started by: troflip on October 20, 2017, 12:42:43 AM

Title: color names
Post by: troflip 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 )



Title: Re: color names
Post by: Kawa 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.
Title: Re: color names
Post by: lskovlun 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
Title: Re: color names
Post by: Kawa on October 20, 2017, 10:39:35 AM
Oh gods not Turbo Vision. What other framework lets you do this?

(https://pbs.twimg.com/media/DITci1ZXYAAHP2a.png:orig)
"~G~ree~t~ing...". It's a goddamned toggle :'(
Title: Re: color names
Post by: troflip 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.
Title: Re: color names
Post by: Kawa 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.

Title: Re: color names
Post by: lskovlun 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.