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
1 changed files with 1 additions and 1 deletions

View File

@ -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)