Hello everyone i am new to love and I am creating a paint program basicly it has a red,green and blue sqaures in the top corner if you click on one it changes the color of your pen this is how I planned it
create coloured squares - done
make it respond to a mouse click to change pen color - in progress
make you be able to click on emty space to draw -not done
please help is there any place on the wiki that might help.Also I heard on the wiki that you can not do anything with graphics outside function love.draw
and I need to make an event in mouse event that uses graphics to change pen color
paint program help
- seeker14491
- Prole
- Posts: 9
- Joined: Thu Nov 29, 2012 10:47 pm
Re: paint program help
You can do things such as change the drawing color outside of love.draw. You just have to do the actual drawing in love.draw.
I'm no expert, but for a painting program I would use canvases, although they don't work on really old/weak computers.
https://www.love2d.org/wiki/canvas
I'm no expert, but for a painting program I would use canvases, although they don't work on really old/weak computers.
https://www.love2d.org/wiki/canvas
Re: paint program help
We talked about a paint program in this thread here. Maybe that helps.
If not, please upload a .love-file of the code you have. That way we can help you much more specific.
If not, please upload a .love-file of the code you have. That way we can help you much more specific.
Check out my blog on gamedev
Re: paint program help
I just made a table that holds every pixel with a 0-12 value for each color.
Code: Select all
L
L Ö
Ö V
L Ö V E
Ö B E
V E
E Y
Who is online
Users browsing this forum: No registered users and 0 guests