diff options
author | Poommetee Ketson <poommetee@protonmail.com> | 2018-02-25 13:19:42 +0700 |
---|---|---|
committer | Poommetee Ketson <poommetee@protonmail.com> | 2018-02-25 15:14:25 +0700 |
commit | eb63f7b071093238da663e00e69abbbbf490a5af (patch) | |
tree | 01347d5d9ac8d2c7d03818faf02b7e142960c5e0 /doc/classes/Color.xml | |
parent | bd3b958a2545c3f4dd4afa2e69b690a3c6aa78fc (diff) | |
download | redot-engine-eb63f7b071093238da663e00e69abbbbf490a5af.tar.gz |
[DOCS] Sync classref with current source
Diffstat (limited to 'doc/classes/Color.xml')
-rw-r--r-- | doc/classes/Color.xml | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/doc/classes/Color.xml b/doc/classes/Color.xml index 8113ee3415..490583b427 100644 --- a/doc/classes/Color.xml +++ b/doc/classes/Color.xml @@ -117,6 +117,24 @@ [/codeblock] </description> </method> + <method name="from_hsv"> + <return type="Color"> + </return> + <argument index="0" name="h" type="float"> + </argument> + <argument index="1" name="s" type="float"> + </argument> + <argument index="2" name="v" type="float"> + </argument> + <argument index="3" name="a" type="float" default="1"> + </argument> + <description> + Constructs a color from an HSV profile. [code]h[/code] is a value between 0 and 360. [code]s[/code] and [code]v[/code] are values between 0 and 1. + [codeblock] + var c = Color.from_hsv(210, 0.5, 0.79, 0.8) # equivalent to HSV(210, 50, 79, 0.8) or Color8(100, 151, 201, 0.8) + [/codeblock] + </description> + </method> <method name="gray"> <return type="float"> </return> |