Creating a image from zero? [SOLVED]
Posted: Sun May 12, 2019 6:38 pm
There is some way of creating a image from zero and saving it to a local file? like:
Code: Select all
img = love.graphics.createImage(200,200) --200x200 image
img:setPixel(1,1,0.5,0.7,0.87) --Sets the pixel x:1,y:1 to color 0.5, 0.7, 0.87
img:encode("poop.png")