Darkens a color component.
This template can be substituted.

Input:

  • first parameters: a single RGB color component value to darken, numeric and in range 0..255
  • second parameter: amount by which to darken in % (0 = no change, 100 = black)

Output:

  • darkened component value as decimal

Example:

  • {{darken1|180| 0 }} gives 180
  • {{darken1|180| 20}} gives 144
  • {{darken1|180| 50}} gives 90
  • {{darken1|180| 80}} gives 36
  • {{darken1|180|100}} gives 0