---
title: useConstantColor
framework: GLKit
role: symbol
role_heading: Instance Property
platforms: [iOS 5.0+, iPadOS 5.0+, macOS 10.8+, tvOS 9.0+]
path: glkit/glkbaseeffect/useconstantcolor
---

# useConstantColor

A Boolean value that indicates whether or not to use the constant color.

## Declaration

```swift
var useConstantColor: GLboolean { get set }
```

## Discussion

Discussion If the value is set to GL_TRUE, then the value stored in the constantColor property is used as the color value for each vertex. If the value is set to GL_FALSE, then your application is expected to enable the GLKVertexAttrib.color attribute and provide per-vertex color data. The default value is GL_FALSE.

## See Also

### Configuring Color Information

- [colorMaterialEnabled](glkit/glkbaseeffect/colormaterialenabled.md)
- [constantColor](glkit/glkbaseeffect/constantcolor.md)
