penrose

program for generating penrose tilings.
Log | Files | Refs | README | LICENSE

commit 5da842d23d4e7c01882fcd08af05c500fab96df3
parent 8b78702825754eaa069e2d32e4de258571f42816
Author: mpizzzle <m@michaelpercival.xyz>
Date:   Fri, 23 Oct 2020 01:10:40 +0100

correcting colors

Diffstat:
Mpenrose.cpp | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/penrose.cpp b/penrose.cpp @@ -178,11 +178,11 @@ int main() { glUseProgram(programID); glPolygonMode(GL_FRONT_AND_BACK, GL_FILL); - glUniform4fv(paint, 1, &secondary[0]); + glUniform4fv(paint, 1, &primary[0]); glBindVertexArray(VAOs[0]); glDrawElements(GL_TRIANGLES, indices[0].size(), GL_UNSIGNED_INT, 0); - glUniform4fv(paint, 1, &primary[0]); + glUniform4fv(paint, 1, &secondary[0]); glBindVertexArray(VAOs[1]); glDrawElements(GL_TRIANGLES, indices[1].size(), GL_UNSIGNED_INT, 0);