# Enum.GradientType

Roblox Engine API enum from Roblox Studio 0.744.0.7441077 (version-7aaa6838d36c4448).

- HTML page: https://rapi.sleaze.dev/enums/GradientType/
- Roblox documentation: https://create.roblox.com/docs/reference/engine/enums/GradientType

Used alongside [`UIGradient.Type`](https://rapi.sleaze.dev/classes/UIGradient.md) to set the shape of the gradient.

## Items

| Name | Value | Description |
| --- | --- | --- |
| `Linear` | 0 | The color/transparency sequence transitions in a straight line across the element. The direction is controlled by `Rotation` and the position by `Offset`. |
| `Radial` | 1 | The color/transparency sequence radiates outward from the element's center, optionally shifted by `Offset`. The radius is defined by the average of the element's width and height divided by two, effectively `(width+height)/4`. `Rotation` has no effect on a radial gradient. |
| `Conical` | 2 | The color/transparency sequence sweeps clockwise around the center of the element, optionally shifted by `Offset`. `Rotation` controls the starting angle of the sweep. |
| `Elliptical` | 3 |  |

## Used by

Each entry lists the class, then the role and names of the members that use this type.

- [UIGradient](https://rapi.sleaze.dev/classes/UIGradient.md): property `Type`
