Jump to content




Colors API page addition


10 replies to this topic

#1 awsmazinggenius

  • Members
  • 930 posts
  • LocationCanada

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 by awsmazinggenius, 25 March 2014 - 03:20 AM.


#2 theoriginalbit

    Semi-Professional ComputerCrafter

  • Moderators
  • 7,332 posts
  • LocationAustralia

Posted 25 March 2014 - 03:38 AM

View Postawsmazinggenius, on 25 March 2014 - 03:20 AM, said:

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!

View Postawsmazinggenius, on 25 March 2014 - 03:20 AM, said:

Cyan: #4c9962
Black: #000000
Incorrect codes.
Cyan: #4c99b2 (yours is green)
Black: #191919

#3 awsmazinggenius

  • Members
  • 930 posts
  • LocationCanada

Posted 25 March 2014 - 03:59 AM

Oops, must have made a typo with the cyan. Dunno how I got the wrong black, though.

#4 Lyqyd

    Lua Liquidator

  • Moderators
  • 8,465 posts

Posted 25 March 2014 - 04:37 AM

There are two different black colors, observable when placing black text over a black background.

#5 oeed

    Oversimplifier

  • Members
  • 2,095 posts
  • LocationAuckland, New Zealand

Posted 25 March 2014 - 04:56 AM

Added to Colors API page on the Wiki.

http://www.computerc...rs_(API)#Colors

Edited by oeed, 25 March 2014 - 04:56 AM.


#6 theoriginalbit

    Semi-Professional ComputerCrafter

  • Moderators
  • 7,332 posts
  • LocationAustralia

Posted 25 March 2014 - 05:07 AM

View Postoeed, on 25 March 2014 - 04:56 AM, said:

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.

#7 oeed

    Oversimplifier

  • Members
  • 2,095 posts
  • LocationAuckland, New Zealand

Posted 25 March 2014 - 06:36 AM

View Posttheoriginalbit, on 25 March 2014 - 05:07 AM, said:

View Postoeed, on 25 March 2014 - 04:56 AM, said:

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.

#8 theoriginalbit

    Semi-Professional ComputerCrafter

  • Moderators
  • 7,332 posts
  • LocationAustralia

Posted 25 March 2014 - 06:48 AM

View Postoeed, on 25 March 2014 - 06:36 AM, said:

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.

#9 awsmazinggenius

  • Members
  • 930 posts
  • LocationCanada

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.

#10 oeed

    Oversimplifier

  • Members
  • 2,095 posts
  • LocationAuckland, New Zealand

Posted 25 March 2014 - 08:50 PM

View Postawsmazinggenius, on 25 March 2014 - 06:08 PM, said:

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

#11 awsmazinggenius

  • Members
  • 930 posts
  • LocationCanada

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 by awsmazinggenius, 26 March 2014 - 03:34 AM.






1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users