Skip to content

Gradient ​

Applies a gradient fill to a widget.

luau
PeanutUI.Frame {
    gradient = {
        color = ColorSequence.new(Color3.new(1, 0, 0), Color3.new(0, 0, 1)),
        rotation = 45,
    }
}

Properties ​

PropertyTypeDescription
enabledbooleanWhether the gradient is drawn.
colorColorSequenceGradient colors.
offsetVector2Gradient offset.
scalenumberGradient scale.
rotationnumberRotation in degrees.
transparencyNumberSequenceTransparency over the gradient.
tileMode"Clamp" | "Mirror" | "Repeat"Tile mode.
type"Conical" | "Linear" | "Radial"Gradient type.