summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorSergei ZH <sergey95aeses@gmail.com>2017-11-26 16:42:29 +0100
committerRĂ©mi Verschelde <rverschelde@gmail.com>2017-11-26 22:25:40 +0100
commit024c4f14a14e67f15adbcca39c6a941ea89e0f3d (patch)
tree2be478bffa45e32cc4acd8be9315b0c0c962c813 /doc
parent90f9f123fd4a79440d21557d4f56ef35be318fad (diff)
Fixing mistake in image class
Diffstat (limited to 'doc')
-rw-r--r--doc/classes/Image.xml6
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/classes/Image.xml b/doc/classes/Image.xml
index 4e905445ed..83c1bad8e3 100644
--- a/doc/classes/Image.xml
+++ b/doc/classes/Image.xml
@@ -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>