Blockland Forums > Modification Help
code color for script
Cubelands:
I am try find out where I get color code for script, like this
--- Code: ---colors[0] = "0 1 1 1";
--- End code ---
I am sure it not Hex or RGB code.
Port:
It's a floating-point RGBA value, where 0 >= element <= 1.
To convert a regular 8-bit RGBA value to this, divide each component by 255.
Cubelands:
--- Quote from: Port on May 14, 2012, 07:17:28 AM ---Floating-point RGBA values, where 0 >= element <= 1.
--- End quote ---
Does it have website show the color code?
Port:
--- Quote from: Cubelands on May 14, 2012, 07:18:39 AM ---Does it have website show the color code?
--- End quote ---
--- Quote from: Port on May 14, 2012, 07:17:28 AM ---To convert a regular 8-bit RGBA value to this, divide each component by 255.
--- End quote ---
Cubelands:
If I want use this color code (Breeze) 146 223 227
how I put this colors[0] = "0 146 223 227"; or I am wrong.