StripesPattern

Stripe pattern with alternating colored stripes

Constructor

StripesPattern(
    stripe_width: float,
    color1: Color,
    color2: Color,
    angle: float = 0
) -> None

Methods

interpolate

interpolate(other: Pattern, t: float)

Interpolate between two StripesPattern instances

to_drawsvg

to_drawsvg(drawing: Optional[Drawing] = None) -> Pattern

Convert to drawsvg Pattern object