Browse Source

Fixing mistake in image class

Sergei ZH 8 years ago
parent
commit
024c4f14a1
1 changed files with 3 additions and 3 deletions
  1. 3 3
      doc/classes/Image.xml

+ 3 - 3
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>