Newbie Color Question
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
Re: Newbie Color Question
I'm talking about my paddles, your screenshot is just a bg color.. there's nothing to compare
- kikito
- Inner party member
- Posts: 3153
- Joined: Sat Oct 03, 2009 5:22 pm
- Location: Madrid, Spain
- Contact:
Re: Newbie Color Question
@cris-kun: just do this:
Every time you do this: or this:
Just put love.graphics.setColor(255,255,255) before:
You will stop having that 'tinted' issue that you seem to be having.
Every time you do this:
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(....)
When I write def I mean function.
- tentus
- Inner party member
- Posts: 1060
- Joined: Sun Oct 31, 2010 7:56 pm
- Location: Appalachia
- Contact:
Re: Newbie Color Question
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.
Kurosuke needs beta testers
Re: Newbie Color Question
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(....)
- tentus
- Inner party member
- Posts: 1060
- Joined: Sun Oct 31, 2010 7:56 pm
- Location: Appalachia
- Contact:
Re: Newbie Color Question
@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.
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
Re: Newbie Color Question
I have.... read above :/
(end of first page)
(end of first page)
- Robin
- The Omniscient
- Posts: 6506
- Joined: Fri Feb 20, 2009 4:29 pm
- Location: The Netherlands
- Contact:
Re: Newbie Color Question
Alright, people, stop piping in, this is getting ridiculous.
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
Help us help you: attach a .love.
Re: Newbie Color Question
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
- tentus
- Inner party member
- Posts: 1060
- Joined: Sun Oct 31, 2010 7:56 pm
- Location: Appalachia
- Contact:
Re: Newbie Color Question
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
@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
- nevon
- Commander of the Circuloids
- Posts: 938
- Joined: Thu Feb 14, 2008 8:25 pm
- Location: Stockholm, Sweden
- Contact:
Re: Newbie Color Question
I'd also like you to post the paddle image.
Who is online
Users browsing this forum: Ahrefs [Bot], Bing [Bot], kov_serg and 6 guests