Function Image.setPixelv
Sets the Color
of the pixel at (dst
if the image is locked. Note that the dst
values must be integers. Example:
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