Template:HexColour: Difference between revisions

From SmashWiki, the Super Smash Bros. wiki
Jump to navigationJump to search
No edit summary
(this is a bit inconvenient but will make it much easier to pass colours around)
Line 1: Line 1:
#{{dec2hex|{{{1|0}}}|digits=2}}{{dec2hex|{{{2|0}}}|digits=2}}{{dec2hex|{{{3|0}}}|digits=2}}<noinclude>
{{dec2hex|{{{1|0}}}|digits=2}}{{dec2hex|{{{2|0}}}|digits=2}}{{dec2hex|{{{3|0}}}|digits=2}}<noinclude>


==Usage==
==Usage==


This template takes three RGB values from 0-255 in decimal and outputs a hex colour with a preceding # for use in CSS styles. Useful for when a colour must be calculated and not just hardcoded.</noinclude>
This template takes three RGB values from 0-255 in decimal and outputs a hex colour for use in CSS styles. Useful for when a colour must be calculated and not just hardcoded. Does not include the preceding #.</noinclude>

Revision as of 18:23, August 11, 2012

000000

Usage

This template takes three RGB values from 0-255 in decimal and outputs a hex colour for use in CSS styles. Useful for when a colour must be calculated and not just hardcoded. Does not include the preceding #.