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
The direction of the gradient sweep.
Whether this gradient is enabled.
The origin of the gradient within the interface element.
Whether the gradient affects the element's fill, stroke, or both.
The spatial reach of the gradient.
The rounding used for the gradient's coordinate mapping.
The color stops defining the gradient.
Whether the gradient uses a linear, radial, or angular sweep.
Returns this instance if it is an ExecutionGroup.
Properties
Direction
Gradient.Direction: Vector2 = Vector2.new(0, 1)The direction of the gradient sweep.
Enabled
Gradient.Enabled: boolean = trueWhether this gradient is enabled.
Origin
Gradient.Origin: Vector2 = Vector2.new(0.5, 0.5)The origin of the gradient within the interface element.
Paints
Gradient.Paints: Enum.PaintTarget = Enum.PaintTarget.FillWhether the gradient affects the element's fill, stroke, or both.
Reach
Gradient.Reach: number = 0.5The spatial reach of the gradient.
Round
Gradient.Round: boolean = falseThe rounding used for the gradient's coordinate mapping.
Stops
Gradient.Stops: { ColorSequenceKeypoint } = {}The color stops defining the gradient.
Sweep
Gradient.Sweep: Enum.GradientSweep = Enum.GradientSweep.LinearWhether 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
- Properties
- ArchivableClassNameNameParent
- Methods
- AddComponent()AddTag()ClearAllChildren()ClearTags()Clone()Destroy()FindFirstAncestor()FindFirstAncestorOfClass()FindFirstAncestorWhichIsA()FindFirstChild()FindFirstChildOfClass()FindFirstChildWhichIsA()FindFirstDescendant()GetAttribute()GetAttributeChangedSignal()GetAttributes()GetChildren()GetComponent()GetComponentChangedSignal()GetComponents()GetDebugId()GetDescendants()GetFullName()GetPropertyChangedSignal()GetReferencing()GetTags()HasComponent()HasTag()IsA()IsAncestorOf()IsDescendantOf()RemoveComponent()RemoveTag()SetAttribute()WaitForChild()
- Events
- AncestryChangedAttributeChangedChangedChildAddedChildRemovedDescendantAddedDescendantRemovingDestroying