Fixing returned alpha component for inverted method
See `core/color.cpp:217`, alpha channel is not changed.
This commit is contained in:
parent
693582f008
commit
024d595850
|
@ -144,7 +144,7 @@
|
||||||
<return type="Color">
|
<return type="Color">
|
||||||
</return>
|
</return>
|
||||||
<description>
|
<description>
|
||||||
Returns the inverted color [code](1 - r, 1 - g, 1 - b, 1 - a)[/code].
|
Returns the inverted color [code](1 - r, 1 - g, 1 - b, a)[/code].
|
||||||
[codeblock]
|
[codeblock]
|
||||||
var c = Color(0.3, 0.4, 0.9)
|
var c = Color(0.3, 0.4, 0.9)
|
||||||
var inverted_color = c.inverted() # a color of an RGBA(178, 153, 26, 255)
|
var inverted_color = c.inverted() # a color of an RGBA(178, 153, 26, 255)
|
||||||
|
|
Loading…
Reference in New Issue