Following tutorials, setColor affecting image???
Posted: Fri Nov 26, 2010 4:58 am
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:
Why is setColor affecting the way my image is drawn? How do you color text without affecting everything else?
-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)