Types/Color: Difference between revisions
Jump to navigation
Jump to search
(Created page with "Table of red, green, blue, and [optional] alpha float values between 0 and 1. {|class="wikitable" ! name !! meaning !! type |- | r || red value || float |- | g...") |
No edit summary |
||
Line 1: | Line 1: | ||
Table of red, green, blue, and | Table of red, green, blue, and alpha float values between 0 and 1. | ||
All values are optional, default optional value for colors is 0, for alpha 1. | |||
{|class="wikitable" | {|class="wikitable" | ||
! name !! meaning !! type | ! name !! meaning !! type | ||
Line 9: | Line 10: | ||
| b || blue value || [[Types/float|float]] | | b || blue value || [[Types/float|float]] | ||
|- | |- | ||
| a || [optional] alpha value - transparency || [[Types/float|float]] | | a || [optional, default 1] alpha value - transparency || [[Types/float|float]] | ||
|} | |} | ||
=== Example === | |||
color = {r=1, g=0, b=0, a=0.5} -- red | |||
color = {r=1, a=0.5} -- the same red, omitting 0 colors | |||
color = {} -- black |
Revision as of 22:34, 14 November 2013
Table of red, green, blue, and alpha float values between 0 and 1. All values are optional, default optional value for colors is 0, for alpha 1.
name | meaning | type |
---|---|---|
r | red value | float |
g | green value | float |
b | blue value | float |
a | [optional, default 1] alpha value - transparency | float |
Example
color = {r=1, g=0, b=0, a=0.5} -- red color = {r=1, a=0.5} -- the same red, omitting 0 colors color = {} -- black