Template:Color
Från Valve Developer Community
Hoppa till navigering
Hoppa till sök
The Template:Color/doc/sv documentation page does not exist.
English documentation will be displayed instead, which you can translate using Google Translate (or similar software). If there is nothing after this message, most likely the documentation does not exist even in English.
English documentation will be displayed instead, which you can translate using Google Translate (or similar software). If there is nothing after this message, most likely the documentation does not exist even in English.
Usage
You can click on the arrow icon to change the color display from HEX to RGB and back.
| Parameter | Description | Example | Preview |
|---|---|---|---|
| No parameters | If no parameters are specified, the template will display black color. | {{Color}}
|
#000000rgb(0,0,0) |
| r = <0-255>| g = <0-255>| b = <0-255>
|
Setting the values of red, green and blue colors respectively. | {{Color|r=200|g=128|b=64}}
|
#C88040rgb(200,128,64) |
| rgb = <0-255>
|
Controls all three colors at once. If a separate color value is specified, it will take precedence. | {{Color|rgb=99}}{{Color|rgb=64|g=255}}
|
#636363rgb(99,99,99) #40FF40rgb(64,255,64) |
| a = <0.0-1.0>
|
Alpha channel. | {{Color|rgb=80|b=220|a=.6}}
|
#5050DC99rgb(80,80,220,.6) |