---
name: GradientType
last_updated: 2026-08-10T22:37:25Z
type: enum
summary: "Specifies the shape of a gradient applied by a UIGradient."
---

# GradientType

Specifies the shape of a gradient applied by a [UIGradient](/docs/reference/engine/classes/UIGradient.md).

**Type:** enum

## Description

Determines the geometric shape used when blending the colors and transparency
of a [UIGradient](/docs/reference/engine/classes/UIGradient.md). Read from [UIGradient.Type](/docs/reference/engine/classes/UIGradient.md), which defaults to
[GradientType.Linear](/docs/reference/engine/enums/GradientType.md).

- [GradientType.Linear](/docs/reference/engine/enums/GradientType.md) — colors transition along a straight line across
  the UI element, controlled by [UIGradient.Rotation](/docs/reference/engine/classes/UIGradient.md) and
  [UIGradient.Offset](/docs/reference/engine/classes/UIGradient.md).
- [GradientType.Radial](/docs/reference/engine/enums/GradientType.md) — colors radiate outward from a center point,
  with [UIGradient.Offset](/docs/reference/engine/classes/UIGradient.md) shifting the center and
  [UIGradient.Scale](/docs/reference/engine/classes/UIGradient.md) controlling the spread radius.
- [GradientType.Conical](/docs/reference/engine/enums/GradientType.md) — colors sweep angularly around a center point
  (like a pie chart), with [UIGradient.Rotation](/docs/reference/engine/classes/UIGradient.md) setting the start angle
  and [UIGradient.Offset](/docs/reference/engine/classes/UIGradient.md) shifting the pivot.

## Items

| Name | Value | Description |
|------|-------|-------------|
| `Linear` | 0 | Colors transition along a straight line across the UI element. |
| `Radial` | 1 | Colors radiate outward from a center point in concentric rings. |
| `Conical` | 2 | Colors sweep angularly around a center point, producing a cone-like or pie-chart gradient. |