Reference API Roblox

Engine API

Website

Related

Reference API Roblox

GradientType

Used alongside UIGradient.Type to set the shape of the gradient.

Items 3

HistoryNameValueDescription
726Linear0

The color/transparency sequence transitions in a straight line across the element. The direction is controlled by Rotation and the position by Offset.

726Radial1

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.

726Conical2

The color/transparency sequence sweeps clockwise around the center of the element, optionally shifted by Offset. Rotation controls the starting angle of the sweep.

Description

Used alongside UIGradient.Type to set the shape of the gradient as linear, radial, or conical.

History 4

Settings