diff options
author | Aaron Franke <arnfranke@yahoo.com> | 2019-07-18 20:15:39 -0400 |
---|---|---|
committer | Aaron Franke <arnfranke@yahoo.com> | 2020-04-29 14:41:12 -0400 |
commit | 90df1d67cbc06f2742c11dad57ca940b9ed7c0d4 (patch) | |
tree | 9278f835567e6bdb535b4b7e5c2a242faa7fca5d /doc | |
parent | 92d4a0cbd231508221b0e977ae9a0e9d4207e328 (diff) |
Color with alpha constructor
Diffstat (limited to 'doc')
-rw-r--r-- | doc/classes/Color.xml | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/doc/classes/Color.xml b/doc/classes/Color.xml index 1af5c87532..b35d4fb36a 100644 --- a/doc/classes/Color.xml +++ b/doc/classes/Color.xml @@ -42,6 +42,20 @@ <method name="Color"> <return type="Color"> </return> + <argument index="0" name="c" type="Color"> + </argument> + <argument index="1" name="a" type="float"> + </argument> + <description> + Constructs a color from an existing color, but with a custom alpha value. + [codeblock] + var red = Color(Color.red, 0.5) # 50% transparent red. + [/codeblock] + </description> + </method> + <method name="Color"> + <return type="Color"> + </return> <argument index="0" name="r" type="float"> </argument> <argument index="1" name="g" type="float"> |