Difference between revisions of "Template:HSVtoRGB.B"

From blackwiki
Jump to navigation Jump to search
imported>R8R
imported>R8R
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}}})  - ({{{3}}}) * ({{{2}}})|                                                 <!-- i = 0
+
-->{{#ifexpr:({{{1}}})<60 |(({{{3}}})  - ({{{3}}}) * ({{{2}}})) |                                             <!-- i = 0
-->{{#ifexpr:({{{1}}})<120|({{{3}}})  - ({{{3}}}) * ({{{2}}})|                                                 <!-- i = 1
+
-->{{#ifexpr:({{{1}}})<120|(({{{3}}})  - ({{{3}}}) * ({{{2}}})) |                                             <!-- i = 1
-->{{#ifexpr:({{{1}}})<180|({{{3}}}) * (1 - ({{{2}}}) * (1 - ( ({{{1}}}) / 60) + trunc (({{{1}}}) / 60))) | <!-- i = 2
+
-->{{#ifexpr:({{{1}}})<180|(({{{3}}}) * (1 - ({{{2}}}) * (1 - ( ({{{1}}}) / 60) + trunc (({{{1}}}) / 60)))) | <!-- i = 2
-->{{#ifexpr:({{{1}}})<240|({{{3}}})|                                                                         <!-- i = 3
+
-->{{#ifexpr:({{{1}}})<240|({{{3}}})|                                                                         <!-- i = 3
-->{{#ifexpr:({{{1}}})<300|({{{3}}})|                                                                         <!-- i = 4
+
-->{{#ifexpr:({{{1}}})<300|({{{3}}})|                                                                         <!-- i = 4
-->{{#ifexpr:({{{1}}})<360|({{{3}}})  + ({{{3}}}) * ({{{2}}}) * (({{{1}}}) - {{Mod|({{{1}}})|60}}) / 60 |     <!-- i = 5
+
-->{{#ifexpr:({{{1}}})<360|(({{{3}}})  + ({{{3}}}) * ({{{2}}}) * (({{{1}}}) - {{Mod|({{{1}}})|60}}) / 60) |   <!-- i = 5
 
-->0}} }} }} }} }} }} }} }}<!-- h >= 360 --></includeonly>
 
-->0}} }} }} }} }} }} }} }}<!-- h >= 360 --></includeonly>
 
<noinclude>{{template doc}}</noinclude>
 
<noinclude>{{template doc}}</noinclude>

Revision as of 15:01, 28 January 2016

Template documentation[view] [edit] [history] [purge]

Usage

See also

{{HSVtoRGB.G}}
{{HSVtoRGB.B}}