diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2018-08-21 17:47:31 +0200 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2018-08-21 17:48:31 +0200 |
commit | 2969dffbe3dc8cc5fc45f284a935f177f79efab4 (patch) | |
tree | 642952237ce1a03ff0aa49fc89b02fa43df3f6e0 /modules/mono/glue/cs_files | |
parent | 238b70e2db7e376ce8b627bbba5770535270da30 (diff) |
Deprecate incorrect Color::gray()
This average is not a proper approximation of a grayscale value,
get_v() is better suited for that.
If we want a real to_grayscale() conversion, it's somewhat more
involved: https://en.wikipedia.org/wiki/Grayscale
Remove the deprecated Gray() from C# bindings as it conflicts
with new named color constants.
Diffstat (limited to 'modules/mono/glue/cs_files')
-rw-r--r-- | modules/mono/glue/cs_files/Color.cs | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/modules/mono/glue/cs_files/Color.cs b/modules/mono/glue/cs_files/Color.cs index 1195071bd3..49e04b333a 100644 --- a/modules/mono/glue/cs_files/Color.cs +++ b/modules/mono/glue/cs_files/Color.cs @@ -258,11 +258,6 @@ namespace Godot return res; } - public float Gray() - { - return (r + g + b) / 3.0f; - } - public Color Inverted() { return new Color( |