Page 3 of 4

Re: Newbie Color Question

Posted: Tue Feb 08, 2011 7:03 pm
by chris-kun
I'm talking about my paddles, your screenshot is just a bg color.. there's nothing to compare

Re: Newbie Color Question

Posted: Tue Feb 08, 2011 7:16 pm
by kikito
@cris-kun: just do this:

Every time you do this:

Code: Select all

love.graphics.draw(....)
or this:

Code: Select all

love.graphics.drawq(....)
Just put love.graphics.setColor(255,255,255) before:

Code: Select all

love.graphics.setColor(255,255,255)
love.graphics.draw(....)

Code: Select all

love.graphics.setColor(255,255,255)
love.graphics.drawq(....)
You will stop having that 'tinted' issue that you seem to be having.

Re: Newbie Color Question

Posted: Tue Feb 08, 2011 7:30 pm
by tentus
Robin wrote:
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?
Does my screen shot look off to you to?

For me, those two are exactly the same colour.

tentus: 1 bit difference is not something you can see as a human.
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?

Re: Newbie Color Question

Posted: Tue Feb 08, 2011 7:36 pm
by chris-kun
kikito wrote:@cris-kun: just do this:

Every time you do this:

Code: Select all

love.graphics.draw(....)
or this:

Code: Select all

love.graphics.drawq(....)
Just put love.graphics.setColor(255,255,255) before:

Code: Select all

love.graphics.setColor(255,255,255)
love.graphics.draw(....)

Code: Select all

love.graphics.setColor(255,255,255)
love.graphics.drawq(....)
You will stop having that 'tinted' issue that you seem to be having.
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.

Re: Newbie Color Question

Posted: Tue Feb 08, 2011 7:38 pm
by tentus
@chris:

Again, please post your code as it is now, so that we can see what's going on. This is like trying to fix someone's bike over the phone- really hard to do without causing further problems.

Re: Newbie Color Question

Posted: Tue Feb 08, 2011 7:43 pm
by chris-kun
I have.... read above :/

(end of first page)

Re: Newbie Color Question

Posted: Tue Feb 08, 2011 7:46 pm
by Robin
Alright, people, stop piping in, this is getting ridiculous.
chris-kun wrote:I'm talking about my paddles, your screenshot is just a bg color.. there's nothing to compare
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.

Re: Newbie Color Question

Posted: Tue Feb 08, 2011 7:56 pm
by chris-kun
huh? the same screenshot I posted? when I open it up in gimp I get the right paddle as #566478 and the left as #7995bf

Re: Newbie Color Question

Posted: Tue Feb 08, 2011 8:17 pm
by tentus
chris-kun wrote:I have.... read above :/

(end of first page)
This is all the code you have posted:

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
What I'm asking is for you to post the contents of main.lua. Don't leave anything out. I had to stitch the above together from several posts, and its still horribly incomplete. I cant help you with just this.

@Robin: scroll to the right of his screenshot, the paddle on the right side is a much darker color. As chris said, it's #566478, not #7995bf (you may need to take a good look at your copy of GIMP if it says those two are the same).

Re: Newbie Color Question

Posted: Tue Feb 08, 2011 8:20 pm
by nevon
I'd also like you to post the paddle image.