Template:ColourShader: Difference between revisions
From SmashWiki, the Super Smash Bros. wiki
Jump to navigationJump to search
(New Page: {{ColourMixer|{{{1|7f7f7f}}}|{{#ifexpr:{{{2|0}}}>0|ffffff|000000}}|{{#ifexpr:{{{2|0}}}>0|{{#expr:{{{2|0}}}*0.01}}|{{#expr:-{{{2|0}}}*0.01}}}}}}<noinclude> ==Usage== This specialized v...) |
(rewriting to match what it depends on) |
||
Line 1: | Line 1: | ||
{{ColourMixer|{{{ | {{ColourMixer|r1={{{r|127.5}}}|g1={{{g|127.5}}}|b1={{{b|127.5}}}|r2={{#ifexpr:{{{f|0}}}>0|255|0}}|g2={{#ifexpr:{{{f|0}}}>0|255|0}}|b2={{#ifexpr:{{{f|0}}}>0|255|0}}|f={{#ifexpr:{{{f|0}}}>0|{{#expr:{{{f|0}}}*0.01}}|{{#expr:-{{{f|0}}}*0.01}}}}}}<noinclude> | ||
==Usage== | ==Usage== | ||
This specialized version of {{t|ColourMixer}} applies fades and shades to colours. | This specialized version of {{t|ColourMixer}} applies simple fades and shades to (non-alpha) colours. | ||
<code><nowiki>{{ColourShader| | <code><nowiki>{{ColourShader|r|g|b|f}}</nowiki></code> | ||
{|class="wikitable" | {|class="wikitable" | ||
|+Meaning of <code>f</code> | |||
| -100 ||Pure black | | -100 ||Pure black | ||
|- | |- |
Revision as of 18:54, August 19, 2017
rgb(127.5,127.5,127.5)
Usage
This specialized version of {{ColourMixer}} applies simple fades and shades to (non-alpha) colours.
{{ColourShader|r|g|b|f}}
-100 | Pure black |
-50 | Half-black |
0 | No change |
+50 | Half-white |
+100 | Pure white |