Blend2D::Styling::Gradient
Inherits Blend2D::BLStructure < Reference < Object
Class methods
conical(point : Point, angle, extend_mode = ExtendMode::Pad)
Creates a new conical gradient with the specified parameters.
conical(x0, y0, angle, extend_mode = ExtendMode::Pad)
Creates a new conical gradient with the specified parameters.
linear(x0, y0, x1, y1, extend_mode = ExtendMode::Pad)
Creates a new linear gradient with the specified coordinates.
linear(a : Point, b : Point, extend_mode = ExtendMode::Pad)
Creates a new linear gradient with the specified parameters.
radial(x0, y0, x1, y1, r, extend_mode = ExtendMode::Pad)
Creates a new radial gradient with the specified parameters.
radial(a : Point, b : Point, r, extend_mode = ExtendMode::Pad)
Creates a new radial gradient with the specified parameters.
Instance methods
==(other : Gradient)
Checks whether or not this gradient is equal to another based on its low-level C counterpart.
matrix_operation(operation : MatrixOperation, data : Array(Float64))
Apply a matrix operation to the gradient. See Context#matrix_operation for more information.
set_stops(stops : Array(GradientStop))
Sets the stops of this gradient from an Array(GradientStop).
shrink
Source