Add documentation for Image's set_pixelv method
This commit is contained in:
parent
7d710a745e
commit
ecb4c70ed3
1 changed files with 9 additions and 0 deletions
|
@ -456,6 +456,15 @@
|
||||||
<argument index="1" name="color" type="Color">
|
<argument index="1" name="color" type="Color">
|
||||||
</argument>
|
</argument>
|
||||||
<description>
|
<description>
|
||||||
|
Sets the [Color] of the pixel at [code](dst.x, dst.y)[/code] if the image is locked. Note that the [code]dst[/code] values must be integers. Example:
|
||||||
|
[codeblock]
|
||||||
|
var img = Image.new()
|
||||||
|
img.create(img_width, img_height, false, Image.FORMAT_RGBA8)
|
||||||
|
img.lock()
|
||||||
|
img.set_pixelv(Vector2(x, y), color) # Works
|
||||||
|
img.unlock()
|
||||||
|
img.set_pixelv(Vector2(x, y), color) # Does not have an effect
|
||||||
|
[/codeblock]
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="shrink_x2">
|
<method name="shrink_x2">
|
||||||
|
|
Loading…
Reference in a new issue