This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
awsmazinggenius's profile picture

Colors API page addition

Started by awsmazinggenius, 25 March 2014 - 02:20 AM
awsmazinggenius #1
Posted 25 March 2014 - 03:20 AM
I've looked for the hex colors CC uses on more than one occasion (today because I needed them for OpenComputers development), so I think it might be convenient to have them on the Colors API page. I bit the bullet today and found the colors today using Photoshop, an eyedropper and oeed's Sketch program (just used the colors on the side), and here is the list in hexadecimal colors. If you need them in RGB or another format, I like using color-hex.com to convert them.


White: #f0f0f0
Orange: #f2b233
Magenta: #e57fd8
Light Blue: #99b2f2
Yellow: #dede6c
Lime: #7fcc19
Pink: #f2b2cc
Gray: #4c4c4c
Light Gray: #999999
Cyan: #4c9962
Purple: #b266e5
Blue: #253192
Brown: #7f664c
Green: #57a64e
Red: #cc4c4c
Black: #000000
Edited on 25 March 2014 - 02:20 AM
theoriginalbit #2
Posted 25 March 2014 - 03:38 AM
I bit the bullet today and found the colors today using Photoshop, an eyedropper and oeed's Sketch program
What a long and convoluted method of getting the colours, when I needed them I just got them out of ComputerCraft source itself!


Cyan: #4c9962
Black: #000000
Incorrect codes.
Cyan: #4c99b2 (yours is green)
Black: #191919
awsmazinggenius #3
Posted 25 March 2014 - 03:59 AM
Oops, must have made a typo with the cyan. Dunno how I got the wrong black, though.
Lyqyd #4
Posted 25 March 2014 - 04:37 AM
There are two different black colors, observable when placing black text over a black background.
oeed #5
Posted 25 March 2014 - 04:56 AM
Added to Colors API page on the Wiki.

http://www.computercraft.info/wiki/Colors_(API)#Colors
Edited on 25 March 2014 - 03:56 AM
theoriginalbit #6
Posted 25 March 2014 - 05:07 AM
Added to Colors API page on the Wiki.

http://www.computerc...rs_(API)#Colors
I may be wrong but I believe the blacks are the other way around, 'cause where I got the codes from where background colours, not text.
oeed #7
Posted 25 March 2014 - 06:36 AM
Added to Colors API page on the Wiki.

http://www.computerc...rs_(API)#Colors
I may be wrong but I believe the blacks are the other way around, 'cause where I got the codes from where background colours, not text.

I noticed what Lyqyd said the other day, the text colour is definitely brighter than the background colour. As #191919 is brighter than #000000 I presumed that the background was the latter.
theoriginalbit #8
Posted 25 March 2014 - 06:48 AM
I noticed what Lyqyd said the other day, the text colour is definitely brighter than the background colour. As #191919 is brighter than #000000 I presumed that the background was the latter.
possibly. it was quite a few months ago that I looked the colour values up, so I could just be mistaken.
awsmazinggenius #9
Posted 25 March 2014 - 06:08 PM
oeed, the whole reason I posted here is because I wanted to run it by the community. I do have wiki edit privileges, and I could have done that, but I haven't actually seen an opinion towards doing so on this topic.
oeed #10
Posted 25 March 2014 - 08:50 PM
oeed, the whole reason I posted here is because I wanted to run it by the community. I do have wiki edit privileges, and I could have done that, but I haven't actually seen an opinion towards doing so on this topic.

Well, it seems useful, so I see no reason not to put it on the wiki. People would probably look their first, they wouldn't think to look in here, and you did post it in wiki discussion :P/>
awsmazinggenius #11
Posted 26 March 2014 - 03:33 AM
"Discussion", as in we talk about it :)/> But anyways, I see no harm in doing so and your edit can be reverted ;)/> so why not
Edited on 26 March 2014 - 02:34 AM