| Did you know ... | Search Documentation: |
| Instance variables |
linear)
or between two circles (radial). Fixed at construction —
build a fresh gradient to change kind.<-p0
and
gradient<-p1
to the two corners of the shape; the perpendicular component is unused.none),
the colour of the nearest stop (pad), the gradient repeated
(repeat), or repeated and mirrored every other time (reflect).
Defaults: pad
<-p0, gradient<-p1, gradient<-r0
and gradient<-r1
are device coordinates or fractions of the box around the shape being
filled. See the class description.
Defaults: user
tuple(fraction, colour) — the colour stops.
Fractions are numbers in 0..1 (values outside are silently clamped by
the renderer); the chain need not be sorted but the visual result
depends on stop order for repeated fractions. Empty chains render as
fully transparent.