Contents

MDLColorSwatchTexture

A generator of texel data that creates a gradient between two specified colors.

Declaration

class MDLColorSwatchTexture

Overview

A MDLColorSwatchTexture object procedurally generates texel data by creating a gradient between two colors. Like other procedural MDLTexture subclasses, the MDLColorSwatchTexture class generates texel data only when that data is first referenced, and caches it for future use.

Topics

Creating a Color Swatch Texture

Initializers

See Also

Textures