Gradient
Gradient
Section titled “Gradient” Category Color
Is Pair Node: No
Generates a gradient paintable based on the specified type, colors, offsets, and other parameters.
Gradient Type
Section titled “Gradient Type”Linear
Section titled “Linear”In Linear gradient, the colors transition along a straight line defined by the Start Point and End Point. The gradient is perpendicular to the line connecting the start and end points.
Radial
Section titled “Radial”In Radial gradient, the colors transition radially from a center point outward. The Center Point defines the center of the gradient, while the Radius defines how far the gradient extends from the center.
Conical
Section titled “Conical”In Conical gradient, the colors transition around a center point in a circular fashion. The Center Point defines the center of the gradient, while the Angle defines the starting angle of the gradient in degrees.
Inputs
Section titled “Inputs” Absolute Coordinates
Section titled “ Absolute Coordinates ” Type: Boolean
Default: false
Should the start and end points be treated as absolute coordinates (pixels) or as relative coordinates (0 to 1 range).
Colors
Section titled “ Colors ” Type: Array of Color
Default: null
An array of colors used in the gradient. The number of colors must be equal to the number of offsets.
Offsets
Section titled “ Offsets ” Type: Array of Float
Default: null
An array of offsets corresponding to each color in the gradient. The number of offsets must be equal to the number of colors.
Stops Count
Section titled “ Stops Count ” Type: Integer
Default: 2
The number of color stops in the gradient. Available when the Colors and Offsets inputs are not connected. When the inputs are connected, the count is determined by the length of the arrays.
Start Point
Section titled “ Start Point ” Type: VecD
Default: (0, 0)
The starting point of the gradient.
Start Point
Section titled “ Start Point ” Type: VecD
Default: (0, 0)
Starting point of the Linear gradient. The interpretation of this point depends on the Absolute Coordinates input.
End Point
Section titled “ End Point ” Type: VecD
Default: (1, 0)
Ending point of the Linear gradient. The interpretation of this point depends on the Absolute Coordinates input.
Center Point
Section titled “ Center Point ” Type: VecD
Default: (0.5, 0.5)
Center point of the Radial and Conical gradient. The interpretation of this point depends on the Absolute Coordinates input.
Radius
Section titled “ Radius ” Type: Double
Default: 0.5
Radius of the Radial gradient. The interpretation of this value depends on the Absolute Coordinates input.
Color Stop Color
Section titled “ Color Stop Color ” Type: Color
Default: White
Color of the color stop. Available when the Colors input is not connected.
Color Stop Offset
Section titled “ Color Stop Offset ” Type: Float
Default: 0
Offset of the color stop. Available when the Offsets input is not connected.
Outputs
Section titled “Outputs” Gradient
Section titled “ Gradient ” Type: Gradient Paintable
Default: null
The resulting gradient paintable that can be used as a color input for other nodes.
All of our content is carefully written by hand, no AI was involved during the process.