I've been using love2d for a quite while now so I'm familiar with all the basic stuff.
Im working on an image editor with LOVE 0.9.0 and I've got the drawing down.
Now I want to be able to save the image.
This is how I'm doing it:
Code: Select all
image = "img.png"
...
imgdata = love.image.newImageData(image)
...
love.filesystem.write("test.png", imgdata)
I could use love.filesystem.read instead but I need to be able to use setPixel and getPixel.
So i'd be great if there's a solution that doesn't require me to rewrite the entire thing.
Here's the .love Controls
Press 1 to save
left click to draw
right click to get the color of the pixel your mouse is on
hold space and use your mouse to drag the image