On this page

LinearGradient

from noon import LinearGradient

Source-derived class. Host availability is not inferred from this listing. See reference scope.

Bases: object. Declared members follow; inherited and dynamically attached members are not expanded.

Local-box paint with ordered ``(position, color)`` stops.

Coordinates run from the lower-left (0, 0) to upper-right (1, 1).
Colors interpolate in premultiplied encoded sRGB. Coverage, fill opacity
and object opacity remain independent. Rust validates all values.

LinearGradient.__init__

LinearGradient.__init__(self, stops, *, start=(0.0, 0.5), end=(1.0, 0.5))
ParameterKindAnnotationDefault
selfpositional or keywordNot annotatedNo default
stopspositional or keywordNot annotatedNo default
startkeyword-onlyNot annotated(0.0, 0.5)
endkeyword-onlyNot annotated(1.0, 0.5)

Return annotation: Not annotated

No docstring declared here. Consult the source and host reference.

Source declaration