---
title: color2
framework: modelio
role: symbol
role_heading: Instance Property
path: modelio/mdlcheckerboardtexture/color2
---

# color2

The color for the other half of the squares in the checkerboard pattern.

## Declaration

```swift
var color2: CGColor? { get set }
```

## Discussion

Discussion This color appears in the second square from top left (in either direction) of the generated pattern, and in alternate squares thereafter. Changing the divisions, color1, or color2 properties invalidates the cache, causing Model I/O to regenerate texel data the next time it is needed.

## See Also

### Configuring the Checkerboard Pattern

- [color1](modelio/mdlcheckerboardtexture/color1.md)
- [divisions](modelio/mdlcheckerboardtexture/divisions.md)
