19 explicit SweepGradient(Gradient base) : base_(std::move(base)) {}
23 static std::optional<std::variant<Color, SweepGradient>>
create(
Point center,
float startAngle,
25 std::vector<GradientStop> stops,
30 [[nodiscard]]
bool isOpaque()
const {
return base_.colorsAreOpaque(); }
33 [[nodiscard]]
bool pushStages(
ColorSpace cs, pipeline::RasterPipelineBuilder& p)
const;
ColorSpace
Colorspace for gamma-correct blending.
Definition Color.h:167
Base gradient data and gradient stop type.
Angular sweep gradient shader.
Definition SweepGradient.h:17
static std::optional< std::variant< Color, SweepGradient > > create(Point center, float startAngle, float endAngle, std::vector< GradientStop > stops, SpreadMode mode, Transform transform)
Creates a sweep gradient between startAngle and endAngle (degrees). Returns a Color if the gradient d...
2D point / vector with float components.
Definition Point.h:14