ReadonlyfromWhere the gradient reads offset 0, in local space; finite (§85).
ReadonlykindDiscriminant (§58 "linear gradient").
Optional ReadonlyopacitySee SolidPaint.opacity; multiplies every stop's alpha.
ReadonlystopsAt least two sorted stops (§85) — see GradientStop.
ReadonlytoWhere it reads offset 1, in local space; finite, not from (§85).
A §58 linear gradient: colour as a function of signed distance along the axis from
fromtoto, both in the shape's own local space — the space its path coordinates live in, so a gradient authored across aRectangle's width stays put when the node moves (Canvas's user-space rule).fromandtomust differ (§85): a zero-length axis has no direction, and inventing one would draw a picture the author never described. Any stop count ≥ 2 is exact — the lowering evaluates the piecewise ramp per fragment, so there is no per-vertex facet to see (the R-16 boundary, closed).