Skip to content

give colour depending on state #3

@guanicoe

Description

@guanicoe

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions