Difference between revisions of "Template:Colort/Color"
Jump to navigation
Jump to search
imported>Crissov |
imported>Crissov m (round hue) |
||
| Line 8: | Line 8: | ||
|style="border-left-width:0px;border-right-width:0px;text-align:right;" title="{{{g}}}/255"| {{#expr:{{{g}}}/2.55 round 0}}% | |style="border-left-width:0px;border-right-width:0px;text-align:right;" title="{{{g}}}/255"| {{#expr:{{{g}}}/2.55 round 0}}% | ||
|style="border-left-width:0px;border-right-width:2px;text-align:right;" title="{{{b}}}/255"| {{#expr:{{{b}}}/2.55 round 0}}% | |style="border-left-width:0px;border-right-width:2px;text-align:right;" title="{{{b}}}/255"| {{#expr:{{{b}}}/2.55 round 0}}% | ||
| − | |style="border-left-width:2px;border-right-width:1px;text-align:right;"| {{Nts|{{{h|{{RGBtoHSL.H|{{{r}}}|{{{g}}}|{{{b}}}|}} | + | |style="border-left-width:2px;border-right-width:1px;text-align:right;"| {{Nts|{{{h|{{#expr:{{RGBtoHSL.H|{{{r}}}|{{{g}}}|{{{b}}}|}} round 0}} }}}|}}° |
|style="border-left-width:1px;border-right-width:0px;text-align:right;"| {{#expr:100*{{RGBtoHSL.S|{{{r}}}|{{{g}}}|{{{b}}}|}} round 0}}% | |style="border-left-width:1px;border-right-width:0px;text-align:right;"| {{#expr:100*{{RGBtoHSL.S|{{{r}}}|{{{g}}}|{{{b}}}|}} round 0}}% | ||
|style="border-left-width:0px;border-right-width:1px;text-align:right;"| {{#expr:100*{{RGBtoHSL.L|{{{r}}}|{{{g}}}|{{{b}}}|}} round 0}}% | |style="border-left-width:0px;border-right-width:1px;text-align:right;"| {{#expr:100*{{RGBtoHSL.L|{{{r}}}|{{{g}}}|{{{b}}}|}} round 0}}% | ||
Revision as of 23:28, 12 September 2010
| Name | Hex (RGB) |
Red (RGB) |
Green (RGB) |
Blue (RGB) |
Hue (HSL/HSV) |
Satur. (HSL) |
Light (HSL) |
Satur. (HSV) |
Value (HSV) |
|---|---|---|---|---|---|---|---|---|---|
| {{{name}}} | #?????? | Expression error: Unrecognized punctuation character "{".% | Expression error: Unrecognized punctuation character "{".% | Expression error: Unrecognized punctuation character "{".% | Template:Nts° | Expression error: Unrecognized punctuation character "[".% | Expression error: Unrecognized punctuation character "[".% | —% | —% |
If not provided, HSL and hex triplet are auto-generated from r, g and b parameters. There are no color conversion templates for HSV or other notations yet (hue is the same as HSL).