|
|
@@ -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>
|