On this page

ImageMapping

from noon import ImageMapping

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.

Immutable image fit and local UV placement, validated by Rust.

Alignment and translation use lower-left normalized geometry coordinates;
positive rotation is counterclockwise and signed scale can mirror the image.

ImageMapping.__init__

ImageMapping.__init__(self, *, fit='cover', alignment=(0.5, 0.5), address='clamp', translation=(0.0, 0.0), scale=(1.0, 1.0), rotation=0.0)
ParameterKindAnnotationDefault
selfpositional or keywordNot annotatedNo default
fitkeyword-onlyNot annotated'cover'
alignmentkeyword-onlyNot annotated(0.5, 0.5)
addresskeyword-onlyNot annotated'clamp'
translationkeyword-onlyNot annotated(0.0, 0.0)
scalekeyword-onlyNot annotated(1.0, 1.0)
rotationkeyword-onlyNot annotated0.0

Return annotation: Not annotated

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

Source declaration