diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2021-11-11 09:01:39 +0100 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2021-11-11 11:50:02 +0100 |
commit | e2e9b08cc7fb913359efb6f16458b47007b13309 (patch) | |
tree | 434dc853922850abccfad639b81bbd1caa744ce3 /doc/classes | |
parent | 171a69757f575bbc55c686956097c7b4434ec1f8 (diff) |
Color: Bind `from_hsv` as static method
Diffstat (limited to 'doc/classes')
-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 71ec225cf6..650f10a97f 100644 --- a/doc/classes/Color.xml +++ b/doc/classes/Color.xml @@ -147,6 +147,24 @@ <description> </description> </method> + <method name="from_hsv" qualifiers="static"> + <return type="Color" /> + <argument index="0" name="h" type="float" /> + <argument index="1" name="s" type="float" /> + <argument index="2" name="v" type="float" /> + <argument index="3" name="alpha" type="float" default="1.0" /> + <description> + Constructs a color from an [url=https://en.wikipedia.org/wiki/HSL_and_HSV]HSV profile[/url]. [code]h[/code] (hue), [code]s[/code] (saturation), and [code]v[/code] (value) are typically between 0 and 1. + [codeblocks] + [gdscript] + var c = Color.from_hsv(0.58, 0.5, 0.79, 0.8) + [/gdscript] + [csharp] + var c = Color.FromHsv(0.58f, 0.5f, 0.79f, 0.8f); + [/csharp] + [/codeblocks] + </description> + </method> <method name="from_rgbe9995" qualifiers="static"> <return type="Color" /> <argument index="0" name="rgbe" type="int" /> |