---
title: gradientPoints
framework: tvmlkit
role: symbol
role_heading: Instance Property
path: tvmlkit/tvcolor/gradientpoints
---

# gradientPoints

An array of points used to determine gradient color changes.

## Declaration

```swift
var gradientPoints: [NSNumber]? { get }
```

## Discussion

Discussion This property is only available when colorType is set to TVColorType.linearGradientTopToBottom or TVColorType.linearGradientLeftToRight. The points defined in the array determine when a color change occurs using the colors in the gradientColors property.

## See Also

### Getting Color Properties

- [color](tvmlkit/tvcolor/color.md)
- [colorType](tvmlkit/tvcolor/colortype.md)
- [TVColorType](tvmlkit/tvcolortype.md)
- [gradientColors](tvmlkit/tvcolor/gradientcolors.md)
