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...)
 
m (Text replacement - "== ([^=])" to "== $1")
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
{{ColourMixer|{{{1|7f7f7f}}}|{{#ifexpr:{{{2|0}}}>0|ffffff|000000}}|{{#ifexpr:{{{2|0}}}>0|{{#expr:{{{2|0}}}*0.01}}|{{#expr:-{{{2|0}}}*0.01}}}}}}<noinclude>
{{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 simple fades and shades to (non-alpha) colours.


This specialized version of {{t|ColourMixer}} applies fades and shades to colours.
<code><nowiki>{{ColourShader|r|g|b|f}}</nowiki></code>
 
<code><nowiki>{{ColourShader|colour|factor}}</nowiki></code>
 
For the colour, input a six-digit hex colour such as <code>ffbf00</code>. For <code>factor</code>:


{|class="wikitable"
{|class="wikitable"
|+Meaning of <code>f</code>
| -100 ||Pure black
| -100 ||Pure black
|-
|-

Latest revision as of 02:20, April 13, 2022

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}}

Meaning of f
-100 Pure black
-50 Half-black
0 No change
+50 Half-white
+100 Pure white