Re: Newbie Color Question
Posted: Tue Feb 08, 2011 7:03 pm
I'm talking about my paddles, your screenshot is just a bg color.. there's nothing to compare
Code: Select all
love.graphics.draw(....)
Code: Select all
love.graphics.drawq(....)
Code: Select all
love.graphics.setColor(255,255,255)
love.graphics.draw(....)
Code: Select all
love.graphics.setColor(255,255,255)
love.graphics.drawq(....)
I guess this is sort of like how sometimes in Lua 0.7 - 0.1 = 0.59999996423721? So close that you're not supposed to be able to notice that it's wrong?Robin wrote:Does my screen shot look off to you to?chris-kun wrote:lol I don't know what screenshot you're looking at, but that is most definitely more than "1" off, and this is on a computer where it's less pronounced. why should I have to use pure blue? are you saying love can't display simple colors correctly?
For me, those two are exactly the same colour.
tentus: 1 bit difference is not something you can see as a human.
if you look at the code I posted above, I've already tried this suggestion. It's also not my images that are being tinted, but the things that love is drawing itself.kikito wrote:@cris-kun: just do this:
Every time you do this:or this:Code: Select all
love.graphics.draw(....)
Just put love.graphics.setColor(255,255,255) before:Code: Select all
love.graphics.drawq(....)
Code: Select all
love.graphics.setColor(255,255,255) love.graphics.draw(....)
You will stop having that 'tinted' issue that you seem to be having.Code: Select all
love.graphics.setColor(255,255,255) love.graphics.drawq(....)
Your paddles are those thin lines, right? For me, it looks like they have the exact same colour as the background colour in my screenshot. The GIMP confirms.chris-kun wrote:I'm talking about my paddles, your screenshot is just a bg color.. there's nothing to compare
This is all the code you have posted:chris-kun wrote:I have.... read above :/
(end of first page)
Code: Select all
function love.load()
pc={122, 150, 191, 255}
love.graphics.setColorMode("replace")
love.graphics.setBackgroundColor(51,51,51)
end
function love.draw()
love.graphics.setColor(255,255,255)
love.graphics.setColor(pc)
love.graphics.line(paddle[2].x1, paddle[2].y1, paddle[2].x2, paddle[2].y2)
love.graphics.setColor(255,255,255)
love.graphics.draw(paddlei, paddle[1].x1, paddle[1].y1)
love.graphics.draw(balli, bx-balli:getWidth()/2, by-balli:getHeight()/2)
love.graphics.print(p1,5,5) love.graphics.print(p2,x-13,5)
love.graphics.setColor(255,255,255)
end