Jelajahi Sumber

classes/color - Documenting a trick with set_modulate

I wanted to document a trick using class color to highlight a sprite.
Brickcaster 10 tahun lalu
induk
melakukan
18964798b7
1 mengubah file dengan 2 tambahan dan 2 penghapusan
  1. 2 2
      doc/base/classes.xml

+ 2 - 2
doc/base/classes.xml

@@ -7291,7 +7291,7 @@
 	Color in RGBA format.
 	</brief_description>
 	<description>
-	A color is represented as red, green and blue (r,g,b) components. Additionally, "a" represents the alpha component, often used for transparency. Values are in floating point, ranging from 0 to 1.
+	A color is represented as red, green and blue (r,g,b) components. Additionally, "a" represents the alpha component, often used for transparency. Values are in floating point and usually range from 0 to 1.  Some methods (such as set_modulate() ) may accept values > 1.
 	</description>
 	<methods>
 		<method name="blend">
@@ -31619,7 +31619,7 @@
 			<argument index="0" name="modulate" type="Color">
 			</argument>
 			<description>
-			Set color modulation for the sprite. All sprite pixels are multiplied by this color.
+			Set color modulation for the sprite. All sprite pixels are multiplied by this color.  Color may contain rgb values above 1 to achieve a highlight effect.
 			</description>
 		</method>
 		<method name="get_modulate" qualifiers="const">