image color problem
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
Re: image color problem
The image is set to black before drawing the image (the second love.graphics.setColor(0,0,0)).
You can fix this by either disabling color modulation[/url] or setting the color to white before drawing the image:
Also, your first love.graphics.print() will be tinted white, because all love.graphics functions that draw stuff use the most currently set color. Think of love.graphics.setColor as picking a crayon of a specific color which you use to draw stuff. The corrected code:
You can fix this by either disabling color modulation[/url] or setting the color to white before drawing the image:
Code: Select all
love.graphics.setColor(255,255,255)
love.graphics.draw(man, manx, many)
Code: Select all
function love.draw()
love.graphics.setColor(255,255,255)
love.graphics.draw(man, manx, many)
love.graphics.setColor(0,0,0)
love.graphics.print("x="..manx, 1, 1)
love.graphics.print("y="..many, 1, 13)
end
Who is online
Users browsing this forum: Ahrefs [Bot], Bing [Bot] and 0 guests