Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pong-2 renders white screen #14

Open
noahhaasis opened this issue Sep 1, 2018 · 3 comments · May be fixed by #17
Open

pong-2 renders white screen #14

noahhaasis opened this issue Sep 1, 2018 · 3 comments · May be fixed by #17

Comments

@noahhaasis
Copy link

noahhaasis commented Sep 1, 2018

running 'love .' in pong-2 results in a completely white screen. With love.graphics.clear(40, 45, 52, 255) commented out everything works expect the background color is black rather then grey. I'm using love 11.1 on a 32bit Windows 10 machine.

@noahhaasis noahhaasis changed the title pong-2 doesn pong-2 renders white screen Sep 1, 2018
@noahhaasis
Copy link
Author

The problem is in the representation of rgb. The code on this repo uses numbers between 0 and 255 to represent a rgb channel. The new love version uses values between 0 and 1. So every channel value x should be replaced with x/255.

@noahhaasis
Copy link
Author

Sry just saw this is a duplicate.

@simleo simleo linked a pull request Nov 3, 2018 that will close this issue
@mcdougak
Copy link

mcdougak commented May 4, 2020

I was having the same issue, thank you for the information for a quick fix!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants