From ecb4c70ed39cc6e57bacef3ce92c969e8b6db1f0 Mon Sep 17 00:00:00 2001 From: Thiago Amendola Date: Tue, 29 Oct 2019 01:54:02 -0300 Subject: [PATCH] Add documentation for Image's set_pixelv method --- doc/classes/Image.xml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/doc/classes/Image.xml b/doc/classes/Image.xml index d297bc98ae7..bf22f5bae03 100644 --- a/doc/classes/Image.xml +++ b/doc/classes/Image.xml @@ -456,6 +456,15 @@ + 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]