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

give colour depending on state #3

Open
guanicoe opened this issue May 30, 2020 · 1 comment
Open

give colour depending on state #3

guanicoe opened this issue May 30, 2020 · 1 comment

Comments

@guanicoe
Copy link

guanicoe commented May 30, 2020

Hi,

First off, I wanted to thank you, I was looking for such template for about a year, was doing it in python but it was too slow. I actually modified your program to do something different bu I needed to render squares from a matrix in a heatmap like graph.

Anyway, my question is how would you go and define a colour depending on the state of the cell. I see that the colour is defined in fragmentShaderSourcewhich is used ininitOpenGL. So I don t really see how one could change this when draw` is called.

Thanks in advance.

ps: I know this repo is old, but I saw your activity a few days ago on another of your repo. Even if you don't exactly remember how this game of life is implemented, I'm just looking for a direction, not an already made solution, although that would be good too

@guanicoe
Copy link
Author

I did read in your blog that this would be one of the challenges, but the documentation for gl and glfw being no existent (I don t count the go doc this it's just a list of all the function) I don't know where to start.

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

No branches or pull requests

1 participant