Here we list few common fill color code for OpenGL applications.
Color Code | color |
glColor4f(1.0f, 1.0f, 1.0f, 0.0f); | white |
glColor4f(1.0f, 0.0f, 0.0f, 0.0f); | red |
glColor3f(0.0f, 1.0f, 0.0f); | green |
glColor3f(0.0f, 0.0f, 1.0f); | blue |
glColor3f(0.5f, 1.0f, 1.0f); | cyan |
glColor4f(1.0f, 1.0f, 0.0f, 0.0f); | yellow |
glColor3f(0.0f, 0.0f, 0.0f); | black |
glColor3f(1.0f, 0.0f, 1.0f); | purple |
glColor4f(0.0f, 1.0f, 1.0f, 1.0f); | Light blue |
glColor3f(1.0f, 0.5f, 0.0f); | orange |
glColor3f(0.0f, 0.5f, 0.5f); | Blue green |
glColor4f(1.0f, 0.0f, 1.0f, 0.0f); | purple |
glColor3f(0.5f, 0.5f, 0.5f); | violet |
glColor4f(1.0f, 0.5f, 0.0f, 0.0f); | brown |
glColor3f(0.0f, 0.1f, 0.0f); | Forest green |
glColor3f(0.0f, 0.1f, 0.1f); | Dark blue |
glColor3f(0.1f, 0.0f, 0.0f); | brown |
glColor3f(0.0f, 0.5f, 1.0f); | Baby blue |
glColor3f(0.1f, 0.1f, 0.0f); | bronze |
glColor3f(2.0f, 0.5f, 1.0f); | lilac |