function love.load()
Image = love.graphics.newImage("love-big-ball.png")
end
function love.draw()
love.graphics.setColor(255, 255, 255, 50)
love.graphics.draw(Image, 50, 50)
end
what am i doing wrong here? if i set the alpha value to 0, the image completely disappears. And when i set it on any other value, it becomes fully visible, with no transparency!
Last edited by ARBTECH on Mon Jan 14, 2019 11:18 am, edited 1 time in total.
Hi, welcome to the forums!
Since LÖVE 11, the values in setColor are now decimal numbers between 0 and 1, meaning that in order to make it transparent you'd need to call lg.setColor(1, 1, 1, 1/5) or similar.
lf = love.filesystem
ls = love.sound
la = love.audio
lp = love.physics
lt = love.thread
li = love.image
lg = love.graphics