summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2019-11-02 19:30:57 +0100
committerGitHub <noreply@github.com>2019-11-02 19:30:57 +0100
commit79918eca30dc2c03d81091e989a7f5dc299e8cda (patch)
tree62e869f4ba4f604954a4feac6a86e4d54928b902
parent306c13a210a54d69f2ef008e04281305c8a6d9c1 (diff)
parentecb4c70ed39cc6e57bacef3ce92c969e8b6db1f0 (diff)
Merge pull request #33151 from thiagoamendola/doc_setpixelv
Add documentation for Image's set_pixelv method
-rw-r--r--doc/classes/Image.xml9
1 files changed, 9 insertions, 0 deletions
diff --git a/doc/classes/Image.xml b/doc/classes/Image.xml
index 2f9503cc49..d37ab64cb3 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">