The portion of my code where (I believe) this is happening is as follows:
Code: Select all
local logo = graphics.newImage 'img/logo.png'
function Titlescreen()
return {
draw = function()
graphics.setColor { 100, 200, 255, 255 }
graphics.rectangle('fill', 0, 0, the.canvas:getWidth(), the.canvas:getHeight())
graphics.setColor(255, 255, 255, 255)
graphics.draw(logo, 100, 30, 0, 0.3, 0.3)
end,
--[[ More codez here... ]]
}
end
This is not the firs time setColor has messed me up . Could someone explain why this is going on? Thanks!