diff options
author | Thiago Amendola <amendolathiago@gmail.com> | 2019-10-29 01:54:02 -0300 |
---|---|---|
committer | Thiago Amendola <amendolathiago@gmail.com> | 2019-11-02 15:06:47 -0300 |
commit | ecb4c70ed39cc6e57bacef3ce92c969e8b6db1f0 (patch) | |
tree | ddbde6941163514b3b5642ccbd38ea6f21ff07f1 /doc/classes/Image.xml | |
parent | 7d710a745e3eecbde482349fff78f0a4e14f6371 (diff) |
Add documentation for Image's set_pixelv method
Diffstat (limited to 'doc/classes/Image.xml')
-rw-r--r-- | doc/classes/Image.xml | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/doc/classes/Image.xml b/doc/classes/Image.xml index d297bc98ae..bf22f5bae0 100644 --- a/doc/classes/Image.xml +++ b/doc/classes/Image.xml @@ -456,6 +456,15 @@ <argument index="1" name="color" type="Color"> </argument> <description> + Sets the [Color] of the pixel at [code](dst.x, dst.y)[/code] if the image is locked. Note that the [code]dst[/code] values must be integers. Example: + [codeblock] + var img = Image.new() + img.create(img_width, img_height, false, Image.FORMAT_RGBA8) + img.lock() + img.set_pixelv(Vector2(x, y), color) # Works + img.unlock() + img.set_pixelv(Vector2(x, y), color) # Does not have an effect + [/codeblock] </description> </method> <method name="shrink_x2"> |