Template:ColorMath
Revision as of 13:25, 17 August 2014 by Strife Onizuka (talk | contribs)
Parameters:
- 1 = r [0, 255]
- 2 = g [0, 255]
- 3 = b [0, 255]
- hex = #rrggbb - "#" is optional
Output:
- {{#var:hex}} - html style color integer, without "#"
- {{#var:vector}} - LSL style vector with values [0, 1]
- 001f3f - <{{#pad:0.|5|0|right}}, {{#pad:0.122|5|0|right}}, {{#pad:0.247|5|0|right}}> - 001F3F - <{{#pad:0.|5|0|right}}, {{#pad:0.122|5|0|right}}, {{#pad:0.247|5|0|right}}>