Open Asterune
Gradient

Gradient

Defines a color and transparency gradient for an interface element.

Creatable
Instance.new("Gradient")
Inherits
UIComponentUIBaseInstance
Replication
Standard

Behavior

Gradient defines a color and transparency gradient for an interface element.

Summary

Members9
Properties8
Methods1

Properties

Direction

Gradient.Direction: Vector2 = Vector2.new(0, 1)

The direction of the gradient sweep.

Enabled

Gradient.Enabled: boolean = true

Whether this gradient is enabled.

Origin

Gradient.Origin: Vector2 = Vector2.new(0.5, 0.5)

The origin of the gradient within the interface element.

Paints

Whether the gradient affects the element's fill, stroke, or both.

Reach

Gradient.Reach: number = 0.5

The spatial reach of the gradient.

Round

Gradient.Round: boolean = false

The rounding used for the gradient's coordinate mapping.

Stops

Gradient.Stops: { ColorSequenceKeypoint } = {}

The color stops defining the gradient.

Sweep

Whether the gradient uses a linear, radial, or angular sweep.

Methods

GetExecutionGroup

Gradient:GetExecutionGroup(): ExecutionGroup?

Returns this instance if it is an ExecutionGroup. Otherwise returns the nearest ancestor ExecutionGroup, or nil when no group contains the instance.

Inherited members

Inherited47

UIComponent