Circle? Box?
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
Circle? Box?
Idk what to do to remove the box, Does it require any work to fix on art side? or code? all suggestions help. I use paint to make it so idk lol
- counterfactual_jones
- Prole
- Posts: 24
- Joined: Mon Feb 09, 2009 10:14 am
Re: Circle? Box?
Your image doesn't have any alpha - along with red green and blue, images sometimes contain an alpha channel to store information about transparency. Love doesn't (at the moment) seem to support colour keyed images - images where you pick a certain colour which then becomes transparent.
However - if all you want is a circle then BEHOLD:
However - if all you want is a circle then BEHOLD:
Code: Select all
love.graphics.circle(0, x, y, radius) -- 0 for filled circle
love.graphics.circle(1, x, y, radius) -- 1 for unfilled circle
love.graphics.circle(1, x, y, radius, sides) -- number of sides can be specified if the default is too blocky
Re: Circle? Box?
This is all great information, but you might be wise to use love.draw_fill and love.draw_line enumerators instead of 0 and 1.counterfactual_jones wrote:Your image doesn't have any alpha - along with red green and blue, images sometimes contain an alpha channel to store information about transparency. Love doesn't (at the moment) seem to support colour keyed images - images where you pick a certain colour which then becomes transparent.
However - if all you want is a circle then BEHOLD:
Code: Select all
love.graphics.circle(0, x, y, radius) -- 0 for filled circle love.graphics.circle(1, x, y, radius) -- 1 for unfilled circle love.graphics.circle(1, x, y, radius, sides) -- number of sides can be specified if the default is too blocky
Code: Select all
love.graphics.circle(love.draw_fill, x, y, radius, sides)
http://love2d.org/docs/Constants.html
I might also recommend the GIMP for creating graphics. It's free and supports the PNG format (among many, many others), which is good for alpha.
http://www.gimp.org
- counterfactual_jones
- Prole
- Posts: 24
- Joined: Mon Feb 09, 2009 10:14 am
Re: Circle? Box?
Aha! I knew there must be constants somewhere! Thank you, I couldn't find any in the docs for the Circle function.Tabasco wrote: This is all great information, but you might be wise to use love.draw_fill and love.draw_line enumerators instead of 0 and 1.
-
- Prole
- Posts: 15
- Joined: Wed Feb 04, 2009 5:25 am
Re: Circle? Box?
I personally prefer paint.net which can be found here: http://www.paint.net/Tabasco wrote:counterfactual_jones wrote:I might also recommend the GIMP for creating graphics. It's free and supports the PNG format (among many, many others), which is good for alpha.
http://www.gimp.org
It's really simple IMO.
Re: Circle? Box?
And Windows-only.Broncheabones wrote:I personally prefer paint.net which can be found here: http://www.paint.net/Tabasco wrote:counterfactual_jones wrote:I might also recommend the GIMP for creating graphics. It's free and supports the PNG format (among many, many others), which is good for alpha.
http://www.gimp.org
It's really simple IMO.
Re: Circle? Box?
and if you ever get past ms paint complexity then you have to dig around in forums for plugin support (but hey, who uses psd files anyway when their working on a image)
its ok, its lacking a lot, so if you want something thats a bit more than ms pain thats probably it
and with any image editor the ease is how much effort you put into it, i find paint.net much harder than the gimp, cause i have not put much if any effort into using it
its ok, its lacking a lot, so if you want something thats a bit more than ms pain thats probably it
and with any image editor the ease is how much effort you put into it, i find paint.net much harder than the gimp, cause i have not put much if any effort into using it
Who is online
Users browsing this forum: Ahrefs [Bot], Bing [Bot], Hydrogen Maniac and 59 guests