Toggle menu
15
236
75
27.7K
Kenshi Wiki
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:53, 25 February 2025 by Prd (talk | contribs) (Created page with "{{Documentation subpage}} <!-- PLEASE ADD CATEGORIES AT THE BOTTOM OF THIS PAGE --> ==Usage== Converts three 8-bit numbers or three percentages to a "rgb(''r'',''g'',''b'')" value, usable in CSS color properties. This template can be substituted. Useful for all sorts of color-related nefarious purposes. ;Input :* three parameters, each numeric in the range 0..255 (larger numbers will wrap around) ;Output :* a triplet of two-digit hex numbers == Examples == * <code><n...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Usage

Converts three 8-bit numbers or three percentages to a "rgb(r,g,b)" value, usable in CSS color properties. This template can be substituted.

Useful for all sorts of color-related nefarious purposes.

Input
  • three parameters, each numeric in the range 0..255 (larger numbers will wrap around)
Output
  • a triplet of two-digit hex numbers

Examples

  • {{RGB|0|0|0}} gives rgb(0,0,0)
  • {{subst:RGB|0|0|0}} gives rgb(0,0,0)
  • {{RGB|123|45|67|}} gives rgb(123,45,67)
  • {{subst:RGB|123|45|67}} gives rgb(123,45,67)
  • {{RGB|255|255|255}} gives rgb(255,255,255)
  • {{subst:RGB|255|255|255}} gives rgb(255,255,255)
  • {{RGB|0%|0%|0%}} gives rgb(0%,0%,0%)
  • {{RGB|123%|45%|67%|}} gives rgb(123%,45%,67%)
  • {{RGB|100%|100%|100%}} gives rgb(100%,100%,100%)

See also

  • {{Hex3}} for formating as a "#RRGGBB" hex value
  • {{Lighten}}