Difference between revisions of "Template:ColorMath"
Jump to navigation
Jump to search
(Maybe an extraneous # — seems to be fixed now?) |
(Fixed explanation on how to *correctly* use the hex= option (no # allowed here!)) |
||
Line 29: | Line 29: | ||
* 2 = g [0, 255] | * 2 = g [0, 255] | ||
* 3 = b [0, 255] | * 3 = b [0, 255] | ||
* hex = #rrggbb - "#" is optional | <s>* hex = #rrggbb - "{{code|#}}" is optional</s> | ||
* hex=rrggbb ('''no''' "{{code|#}}" is allowed on this template! | |||
Output: | Output: |
Revision as of 09:26, 14 October 2023
Parameters:
- 1 = r [0, 255]
- 2 = g [0, 255]
- 3 = b [0, 255]
* hex = #rrggbb - "
#
" is optional
- hex=rrggbb (no "
#
" is allowed on this template!
Output:
- {{#var:hex}} - html style color integer, without "#"
- {{#var:vector}} - LSL style vector with values [0, 1]
- 001f3f - <0.000, 0.122, 0.247> - 001F3F - <0.000, 0.122, 0.247>