Fixing mistake in image class

This commit is contained in:
Sergei ZH 2017-11-26 16:42:29 +01:00 committed by Rémi Verschelde
parent 90f9f123fd
commit 024c4f14a1

View file

@ -376,12 +376,12 @@
<argument index="2" name="color" type="Color">
</argument>
<description>
Sets the [Color] of the pixel at [code](x, y)[/code] if the image is unlocked. Example:
Sets the [Color] of the pixel at [code](x, y)[/code] if the image is locked. Example:
[codeblock]
var img = Image.new()
img.lock()
img.set_pixel(x, y, color) # Does not have an effect
img.unlock()
img.set_pixel(x, y, color) # Does not have an effect
img.lock()
img.set_pixel(x, y, color) # Works
[/codeblock]
</description>