It is currently Tue Sep 16, 2014 5:31 pm




Post new topic Reply to topic  [ 13 posts ] 
 Crayola colors 
Author Message
Online
General
General

Joined: Tue Mar 24, 2009 9:14 am
Posts: 901
Location: Hudson, MI
Post Crayola colors
Looking for that perfect color to use?

http://en.wikipedia.org/wiki/List_of_Crayola_crayon_colors

Also has hex values... :thumb_right:

_________________
Jordan

Duct tape is like The Force. It has a light side, a dark side, and it holds the universe together.


Tue Apr 19, 2011 7:56 am
Profile
General
General

Joined: Mon Apr 04, 2011 4:40 pm
Posts: 495
Location: Hatfield, PA
Post Re: Crayola colors
Nice.

_________________
There are 10 types of people in this world, those who understand binary and those who don't.

Doug Keller
Electronics Project Manager
Clemens Food Group


Tue Apr 19, 2011 2:46 pm
Profile WWW
General
General

Joined: Tue Feb 24, 2009 1:30 pm
Posts: 892
Location: Calgary
Post Re: Crayola colors
Now I can color balance my monitors :)

off to buy a big box of crayons...


Wed Apr 20, 2011 11:13 am
Profile WWW
Moderator
Moderator

Joined: Sun Apr 02, 2006 2:46 pm
Posts: 4056
Location: Sacramento, CA
Post Re: Crayola colors
I'll be building a new color-choosing panel to go with the vector drawing tools in 7.3 - maybe I'll add an easter egg to choose by crayola color ;)

_________________
Carl Gould
Co-Director, Software Engineering
Inductive Automation


Fri Apr 29, 2011 7:58 am
Profile WWW
Online
General
General

Joined: Tue Mar 24, 2009 9:14 am
Posts: 901
Location: Hudson, MI
Post Re: Crayola colors
Carl.Gould wrote:
I'll be building a new color-choosing panel to go with the vector drawing tools in 7.3 - maybe I'll add an easter egg to choose by crayola color ;)


Cool! Then I can get my kids to help out on my projects! :lol:

_________________
Jordan

Duct tape is like The Force. It has a light side, a dark side, and it holds the universe together.


Tue May 03, 2011 1:15 am
Profile
General
General

Joined: Thu May 17, 2007 4:56 pm
Posts: 504
Location: Ohio
Post Re: Crayola colors
If you are working on a new color picker, it might be useful to add a property for the corresponding shadow color value for any selected color. What I'm referring to is the shaded color portion of something like the colored bars in the chart component when 3-D is selected. I had to create a similar chart with the paintable canvas, and all I did was take the rgb values and multiple them by .75 to get something that looked very close to your shading, although I'm not sure if that's correct. It would be that much easier if there was a "shadow" property where this was calculated already.


Tue May 03, 2011 5:28 am
Profile
Moderator
Moderator

Joined: Sun Apr 02, 2006 2:46 pm
Posts: 4056
Location: Sacramento, CA
Post Re: Crayola colors
What you're describing should be easy to if you use the HSB tab of the existing color picker. HSB is a much better way to deal with colors - RGB is a terribly unintuitive way to represent a color.

Go to the HSB tab, click on the B (Brightness) - pick a color and drag the brightness down a bit - done.

The existing color picker isn't going away, I'm just making an additional one that'll have a better form factor for what I need it for in 2d drawing.


Attachments:
hsb.png
hsb.png [ 97.88 KiB | Viewed 4302 times ]

_________________
Carl Gould
Co-Director, Software Engineering
Inductive Automation
Thu May 05, 2011 3:38 pm
Profile WWW
General
General

Joined: Thu May 17, 2007 4:56 pm
Posts: 504
Location: Ohio
Post Re: Crayola colors
But, typically I'll use scripting and use an RGB tuple, like Color(128,128,128,255). And to get the consistent shading, I just multiply each value by a constant (i.e. .75). So, if I need to match the colors used in one of your charts, I just pass the color series as a string to another window, and rip through it and create the shadow effect values dynamically, so everything kind of looks the same. Otherwise, if a user wanted to use a different color for an operation, I'd have to configure two new colors. I'm probably explaining this badly, and maybe I'm just doing it wrong.

For instance, in the chart below, you can see the shadow effect just like on one of your charts. If I passed in something "51,102,255,255" for the first bar, what would be the best way to modify each value? I had in mind something like "a=Color(51,102,255,255), and then a.setShadow(0.60) or a.setAlpha(120).


Attachments:
Production.png
Production.png [ 11.9 KiB | Viewed 4279 times ]
Fri May 06, 2011 6:29 am
Profile
Online
General
General

Joined: Tue Mar 24, 2009 9:14 am
Posts: 901
Location: Hudson, MI
Post Re: Crayola colors
Maybe a new way to typecast a color from HSB values would be a great additon. Something like toHSBColor(h,s,b,a) in expressions, or system.gui.HSBcolor(hue, saturation, brightness [, alpha]) if one be scripting

_________________
Jordan

Duct tape is like The Force. It has a light side, a dark side, and it holds the universe together.


Mon May 09, 2011 4:47 am
Profile
Moderator
Moderator

Joined: Sun Apr 02, 2006 2:46 pm
Posts: 4056
Location: Sacramento, CA
Post Re: Crayola colors
Yeah, either of those ideas is fine, but this topic got into the weeds - I was talking about a new GUI, not a way to create colors in scripting. doing RGB each multiplied by *.8 or whatever is a fine way to get a darker color.

_________________
Carl Gould
Co-Director, Software Engineering
Inductive Automation


Tue May 10, 2011 1:06 pm
Profile WWW
Online
General
General

Joined: Tue Mar 24, 2009 9:14 am
Posts: 901
Location: Hudson, MI
Post Re: Crayola colors
Yeah, but I figured if Carl can do a GUI... :lol:

_________________
Jordan

Duct tape is like The Force. It has a light side, a dark side, and it holds the universe together.


Tue May 10, 2011 3:14 pm
Profile
Moderator
Moderator

Joined: Sun Apr 02, 2006 2:46 pm
Posts: 4056
Location: Sacramento, CA
Post Re: Crayola colors
in the meantime you can do
Code:
from java.awt import Color
myColor = Color(Color.HSBtoRGB(h,s,b))

_________________
Carl Gould
Co-Director, Software Engineering
Inductive Automation


Tue May 10, 2011 3:48 pm
Profile WWW
Online
General
General

Joined: Tue Mar 24, 2009 9:14 am
Posts: 901
Location: Hudson, MI
Post Re: Crayola colors
Oh. Well, that was going to be my next question. You beat me to the punch again!

Thanks Carl!

_________________
Jordan

Duct tape is like The Force. It has a light side, a dark side, and it holds the universe together.


Wed May 11, 2011 1:26 am
Profile
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 13 posts ] 


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: