On this page

HatchPaint

from noon import HatchPaint

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.

Parallel or crossed lines anchored to the object's local origin.

``spacing`` and ``width`` are local scene lengths. ``angle`` is the line
direction in counterclockwise radians from local +X. ``phase`` advances
the two perpendicular line families in periods. ``cross=True`` enables
the second family. The default background is transparent.

Rust validates values and filters the physical pixel footprint. Matching
``cross`` values animate spacing, width, angle, phase and colors through
ordinary ``animate.set_fill``. Static hatching owns no playback clock.

HatchPaint.__init__

HatchPaint.__init__(self, color, background=None, *, spacing=0.25, width=0.04, angle=pi / 4, phase=(0.0, 0.0), cross=False)
ParameterKindAnnotationDefault
selfpositional or keywordNot annotatedNo default
colorpositional or keywordNot annotatedNo default
backgroundpositional or keywordNot annotatedNone
spacingkeyword-onlyNot annotated0.25
widthkeyword-onlyNot annotated0.04
anglekeyword-onlyNot annotatedpi / 4
phasekeyword-onlyNot annotated(0.0, 0.0)
crosskeyword-onlyNot annotatedFalse

Return annotation: Not annotated

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

Source declaration