|
@@ -377,13 +377,13 @@
|
|
</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 unlocked. Example:
|
|
- [code]
|
|
|
|
|
|
+ [codeblock]
|
|
var img = Image.new()
|
|
var img = Image.new()
|
|
img.lock()
|
|
img.lock()
|
|
img.set_pixel(x, y, color) # Does not have an effect
|
|
img.set_pixel(x, y, color) # Does not have an effect
|
|
img.unlock()
|
|
img.unlock()
|
|
img.set_pixel(x, y, color) # Works
|
|
img.set_pixel(x, y, color) # Works
|
|
- [/code].
|
|
|
|
|
|
+ [/codeblock]
|
|
</description>
|
|
</description>
|
|
</method>
|
|
</method>
|
|
<method name="shrink_x2">
|
|
<method name="shrink_x2">
|