Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.
Revision as of 00:54, 25 February 2025 by Prd (talk | contribs) (Created page with "{{Documentation subpage}} <!-- PLEASE ADD CATEGORIES AT THE BOTTOM OF THIS PAGE. --> ==Usage== Lightens a color component. This template can be substituted. '''Input''': * first parameters: a single RGB color component value to lighten, numeric and in range 0..255 * second parameter: amount by which to lighten in % (0 = no change, 100 = white) '''Output''': * lightened component value as decimal ==Example== * <code><nowiki>{{lighten1|180| 0 }}</nowiki></code> gives {{l...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Usage

Lightens a color component. This template can be substituted.

Input:

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

Output:

  • lightened component value as decimal

Example

  • {{lighten1|180| 0 }} gives 180
  • {{lighten1|180| 20}} gives 195
  • {{lighten1|180| 50}} gives 218
  • {{lighten1|180| 80}} gives 240
  • {{lighten1|180|100}} gives 255

See also