Remove deprecated Color::gray
It was marked to be removed in Godot 3.1. Co-authored-by: Rémi Verschelde <rverschelde@gmail.com>
This commit is contained in:
parent
0c7fc80cc1
commit
7bc1dc828f
8 changed files with 1 additions and 37 deletions
|
|
@ -128,18 +128,6 @@
|
|||
[/codeblock]
|
||||
</description>
|
||||
</method>
|
||||
<method name="gray">
|
||||
<return type="float">
|
||||
</return>
|
||||
<description>
|
||||
Returns the color's grayscale representation.
|
||||
The gray value is calculated as [code](r + g + b) / 3[/code].
|
||||
[codeblock]
|
||||
var c = Color(0.2, 0.45, 0.82)
|
||||
var gray = c.gray() # A value of 0.466667
|
||||
[/codeblock]
|
||||
</description>
|
||||
</method>
|
||||
<method name="inverted">
|
||||
<return type="Color">
|
||||
</return>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue