Newbie Color Question

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
User avatar
chris-kun
Prole
Posts: 17
Joined: Mon Feb 07, 2011 4:57 am
Location: SF Bay Area
Contact:

Re: Newbie Color Question

Post by chris-kun »

I'm talking about my paddles, your screenshot is just a bg color.. there's nothing to compare
User avatar
kikito
Inner party member
Posts: 3153
Joined: Sat Oct 03, 2009 5:22 pm
Location: Madrid, Spain
Contact:

Re: Newbie Color Question

Post 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.
When I write def I mean function.
User avatar
tentus
Inner party member
Posts: 1060
Joined: Sun Oct 31, 2010 7:56 pm
Location: Appalachia
Contact:

Re: Newbie Color Question

Post 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?
Kurosuke needs beta testers
User avatar
chris-kun
Prole
Posts: 17
Joined: Mon Feb 07, 2011 4:57 am
Location: SF Bay Area
Contact:

Re: Newbie Color Question

Post 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.
User avatar
tentus
Inner party member
Posts: 1060
Joined: Sun Oct 31, 2010 7:56 pm
Location: Appalachia
Contact:

Re: Newbie Color Question

Post 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.
Kurosuke needs beta testers
User avatar
chris-kun
Prole
Posts: 17
Joined: Mon Feb 07, 2011 4:57 am
Location: SF Bay Area
Contact:

Re: Newbie Color Question

Post by chris-kun »

I have.... read above :/

(end of first page)
User avatar
Robin
The Omniscient
Posts: 6506
Joined: Fri Feb 20, 2009 4:29 pm
Location: The Netherlands
Contact:

Re: Newbie Color Question

Post 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.
Help us help you: attach a .love.
User avatar
chris-kun
Prole
Posts: 17
Joined: Mon Feb 07, 2011 4:57 am
Location: SF Bay Area
Contact:

Re: Newbie Color Question

Post 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
User avatar
tentus
Inner party member
Posts: 1060
Joined: Sun Oct 31, 2010 7:56 pm
Location: Appalachia
Contact:

Re: Newbie Color Question

Post 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).
Kurosuke needs beta testers
User avatar
nevon
Commander of the Circuloids
Posts: 938
Joined: Thu Feb 14, 2008 8:25 pm
Location: Stockholm, Sweden
Contact:

Re: Newbie Color Question

Post by nevon »

I'd also like you to post the paddle image.
Post Reply

Who is online

Users browsing this forum: Google [Bot] and 0 guests