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
This is a read-only snapshot of the ComputerCraft forums,
taken in April 2020.
Colors API page addition
Started by awsmazinggenius, 25 March 2014 - 02:20 AMPosted 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.
Edited on 25 March 2014 - 02:20 AM
Posted 25 March 2014 - 03:38 AM
What a long and convoluted method of getting the colours, when I needed them I just got them out of ComputerCraft source itself!I bit the bullet today and found the colors today using Photoshop, an eyedropper and oeed's Sketch program
Incorrect codes.Cyan: #4c9962 Black: #000000
Cyan: #4c99b2 (yours is green)
Black: #191919
Posted 25 March 2014 - 03:59 AM
Oops, must have made a typo with the cyan. Dunno how I got the wrong black, though.
Posted 25 March 2014 - 04:37 AM
There are two different black colors, observable when placing black text over a black background.
Posted 25 March 2014 - 04:56 AM
Edited on 25 March 2014 - 03:56 AM
Posted 25 March 2014 - 05:07 AM
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.
Posted 25 March 2014 - 06:36 AM
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.
Posted 25 March 2014 - 06:48 AM
possibly. it was quite a few months ago that I looked the colour values up, so I could just be mistaken.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.
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.
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/>
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