diff options
author | Haoyu Qiu <timothyqiu32@gmail.com> | 2021-12-16 13:59:04 +0800 |
---|---|---|
committer | Haoyu Qiu <timothyqiu32@gmail.com> | 2021-12-18 00:34:28 +0800 |
commit | 1fb59d13c2e32b9543195601149071ff4b2887d4 (patch) | |
tree | 981177e1076684cde68ce69f0006b3158dcd82f7 /doc | |
parent | 58712e96aea12bda2d5111d96961f529d15a693c (diff) |
Fix font preview text color on light background
Diffstat (limited to 'doc')
-rw-r--r-- | doc/classes/Color.xml | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/doc/classes/Color.xml b/doc/classes/Color.xml index 22fb853b40..21d17969e2 100644 --- a/doc/classes/Color.xml +++ b/doc/classes/Color.xml @@ -178,6 +178,13 @@ <description> </description> </method> + <method name="get_luminance" qualifiers="const"> + <return type="float" /> + <description> + Returns the luminance of the color in the [code][0.0, 1.0][/code] range. + This is useful when determining light or dark color. Colors with a luminance smaller than 0.5 can be generally considered dark. + </description> + </method> <method name="get_named_color" qualifiers="static"> <return type="Color" /> <argument index="0" name="idx" type="int" /> |