classes/color - Documenting a trick with set_modulate

I wanted to document a trick using class color to highlight a sprite.
This commit is contained in:
Brickcaster 2015-10-25 10:58:38 -04:00
parent 44057ed4ae
commit 18964798b7

View File

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