Fixing mistake in image class
This commit is contained in:
parent
90f9f123fd
commit
024c4f14a1
1 changed files with 3 additions and 3 deletions
|
@ -376,12 +376,12 @@
|
||||||
<argument index="2" name="color" type="Color">
|
<argument index="2" name="color" type="Color">
|
||||||
</argument>
|
</argument>
|
||||||
<description>
|
<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]
|
[codeblock]
|
||||||
var img = Image.new()
|
var img = Image.new()
|
||||||
img.lock()
|
|
||||||
img.set_pixel(x, y, color) # Does not have an effect
|
|
||||||
img.unlock()
|
img.unlock()
|
||||||
|
img.set_pixel(x, y, color) # Does not have an effect
|
||||||
|
img.lock()
|
||||||
img.set_pixel(x, y, color) # Works
|
img.set_pixel(x, y, color) # Works
|
||||||
[/codeblock]
|
[/codeblock]
|
||||||
</description>
|
</description>
|
||||||
|
|
Loading…
Reference in a new issue