Author Topic: Colors  (Read 4158 times)

Would that work on coloring nodes too?

Would that work on coloring nodes too?
Pretty sure \cNUMBER and hex are for text only. Nodes are colored with RGBa.

Would that work on coloring nodes too?
obj.setNodeColor("nodeName", "r g b a");
where r g b a are decimal values between 0 and 1.

I found a hex to rgba converter, except when I put it into the script it gets all borked up.
Can someone give me a white (skin color) and black (skin color) rgba number thinggy

I found a hex to rgba converter, except when I put it into the script it gets all borked up.
Can someone give me a white (skin color) and black (skin color) rgba number thinggy

1 1 1 1 and 0 0 0 1

If you need to pick colors, there's always http://colorpicker.com.



There's two ways of doing this...

You could use "<color:HEXCODE>" which allows for more specific colors, or..
Use "\cNUMBER" which is limited to 9 colors.

For the HEXCODE one you just replace HEXCODE with any hex color.  Here's a quick color sheet: http://www.htmlgoodies.com/tutorials/colors/article.php/3478961/So-You-Want-A-Basic-Color-Code-Huh.htm

The "\c" color code only allows for 9 colors.
\c0 - Red
\c1 - Blue
\c2 - Green
\c3 - Yellow
\c4 - Teal (It's more of a Cyan)
\c5 - Purple
\c6 - White
\c7 - Grey
\c8 - Black

You can do /colortest on the server and it tells you the colors if you are super admin.