Page 1 of 1

Following tutorials, setColor affecting image???

Posted: Fri Nov 26, 2010 4:58 am
by ShadowProtocol
Hi, I'm following the tutorials in the order I think they are most beneficial:
-Getting Started
-Callback Functions
-Drawing Order
-Fonts and Text
-Image Loading, Key Movement (Hamster Ball)
-Using Input

I am on callback functions now, and the example for the love.load() function is:

Code: Select all

image = love.graphics.newImage("bluesquare.png")
	local f = love.graphics.newFont(12)
	love.graphics.setFont(f)
	love.graphics.setColor(0, 0, 0, 255)
	love.graphics.setBackgroundColor(255, 255, 255)
Why is setColor affecting the way my image is drawn? How do you color text without affecting everything else?

Re: Following tutorials, setColor affecting image???

Posted: Fri Nov 26, 2010 6:16 am
by Mud

Re: Following tutorials, setColor affecting image???

Posted: Fri Nov 26, 2010 7:05 am
by bartbes
Or you can just set the color to white if you want your images in their normal color (255, 255, 255, 255 is fully opaque white).