paint program help

General discussion about LÖVE, Lua, game development, puns, and unicorns.
Post Reply
User avatar
silverknight108
Prole
Posts: 17
Joined: Wed Oct 30, 2013 5:24 pm

paint program help

Post by silverknight108 »

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
User avatar
seeker14491
Prole
Posts: 9
Joined: Thu Nov 29, 2012 10:47 pm

Re: paint program help

Post by seeker14491 »

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
User avatar
micha
Inner party member
Posts: 1083
Joined: Wed Sep 26, 2012 5:13 pm

Re: paint program help

Post by micha »

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.
User avatar
iPoisonxL
Party member
Posts: 227
Joined: Wed Feb 06, 2013 3:53 am
Location: Australia
Contact:

Re: paint program help

Post by iPoisonxL »

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
Website
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests