Difference between revisions of "Template:HSVtoRGB.R"
Jump to navigation
Jump to search
imported>R8R |
imported>R8R m (R8R Gtrs moved page User:R8R Gtrs/Template:HSVtoRGB.R to Template:HSVtoRGB.R: move from user space to main template space) |
||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<includeonly>{{#expr: 255 * ({{#ifexpr:({{{1}}})<0|0|<!-- h < 0 | <includeonly>{{#expr: 255 * ({{#ifexpr:({{{1}}})<0|0|<!-- h < 0 | ||
− | -->{{#ifexpr:({{{1}}})<60|({{{3}}})|<!-- i = 0 | + | -->{{#ifexpr:({{{1}}})<60 |({{{3}}}) | <!-- i = 0 |
− | -->{{#ifexpr:({{{1}}})<120|({{{3}}}) | + | -->{{#ifexpr:({{{1}}})<120|(({{{3}}}) * (1 - ({{{2}}}) * ( (({{{1}}}) / 60) - trunc (({{{1}}}) / 60))) ) | <!-- i = 1 |
− | -->{{#ifexpr:({{{1}}})<180|({{{3}}}) - ({{{3}}}) * ({{{2}}})| | + | -->{{#ifexpr:({{{1}}})<180|(({{{3}}}) - ({{{3}}}) * ({{{2}}}))| <!-- i = 2 |
− | -->{{#ifexpr:({{{1}}})<240|({{{3}}}) - ({{{3}}}) * ({{{2}}})| | + | -->{{#ifexpr:({{{1}}})<240|(({{{3}}}) - ({{{3}}}) * ({{{2}}}))| <!-- i = 3 |
− | -->{{#ifexpr:({{{1}}})<300|({{{3}}}) * (1 - ({{{2}}}) * (1 - ( ({{{1}}}) / 60) + trunc (({{{1}}}) / 60))) | | + | -->{{#ifexpr:({{{1}}})<300|(({{{3}}}) * (1 - ({{{2}}}) * (1 - ( ({{{1}}}) / 60) + trunc (({{{1}}}) / 60)))) | <!-- i = 4 |
− | -->{{#ifexpr:({{{1}}})<360|({{{3}}})| | + | -->{{#ifexpr:({{{1}}})<360|(({{{3}}})) | <!-- i = 5 |
-->0}} }} }} }} }} }} }}) }}<!-- h >= 360 --></includeonly> | -->0}} }} }} }} }} }} }}) }}<!-- h >= 360 --></includeonly> | ||
<noinclude>{{template doc}}</noinclude> | <noinclude>{{template doc}}</noinclude> |
Latest revision as of 06:16, 3 February 2016
The above documentation is transcluded from Template:HSVtoRGB.R/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |