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]