Implement Color Palletes

This commit is contained in:
2024-01-24 00:32:07 -05:00
parent 09a8c744c2
commit 8dd5ab1546
3 changed files with 182 additions and 17 deletions

View File

@@ -43,8 +43,8 @@ void display() {
glEnd();
JGL::FillRect2D(JGL::Colors::White, {0, 0}, {128, 128});
JGL::OutlineRect2D(JGL::Colors::BrightRed, {0, 0}, {128, 128}, 4);
JGL::DrawPixel2D(JGL::Colors::BrightGreen, {0, 0});
JGL::OutlineRect2D(JGL::Colors::Red, {0, 0}, {128, 128}, 4);
JGL::DrawPixel2D(JGL::Colors::Green, {0, 0});
glBegin(GL_TRIANGLES);
glColor3f(0.0f, 0.0f, 1.f); // Blue