浏览代码

Fixing returned alpha component for inverted method

See `core/color.cpp:217`, alpha channel is not changed.
Maxime Leroy 6 年之前
父节点
当前提交
024d595850
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      doc/classes/Color.xml

+ 1 - 1
doc/classes/Color.xml

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