Fixing returned alpha component for inverted method

See `core/color.cpp:217`, alpha channel is not changed.
This commit is contained in:
Maxime Leroy 2019-06-08 01:44:25 +02:00 committed by GitHub
parent 693582f008
commit 024d595850
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -144,7 +144,7 @@
<return type="Color">
</return>
<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]
var c = Color(0.3, 0.4, 0.9)
var inverted_color = c.inverted() # a color of an RGBA(178, 153, 26, 255)