Canvas alpha behavior

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
User avatar
Azhukar
Party member
Posts: 478
Joined: Fri Oct 26, 2012 11:54 am

Canvas alpha behavior

Post by Azhukar »

Code: Select all

love.graphics.setColor(0,0,0,0)
love.graphics.rectangle("fill",0,0,100,100) //perfect square
Why does stuff not stuff draw?
Last edited by Azhukar on Mon Oct 29, 2012 3:09 am, edited 7 times in total.
User avatar
Nixola
Inner party member
Posts: 1949
Joined: Tue Dec 06, 2011 7:11 pm
Location: Italy

Re: Canvas alpha behavior

Post by Nixola »

You have to set the color back to (255, 255, 255) to draw something
lf = love.filesystem
ls = love.sound
la = love.audio
lp = love.physics
lt = love.thread
li = love.image
lg = love.graphics
User avatar
BlackBulletIV
Inner party member
Posts: 1261
Joined: Wed Dec 29, 2010 8:19 pm
Location: Queensland, Australia
Contact:

Re: Canvas alpha behavior

Post by BlackBulletIV »

Please read the rules before posting. We need some code before we can provide any definite help.
User avatar
Azhukar
Party member
Posts: 478
Joined: Fri Oct 26, 2012 11:54 am

Re: Canvas alpha behavior

Post by Azhukar »

Thanks for all your help! Issue solved!
Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 208 guests