PerforatedCircleState

Circle with holes

A circular outer shape with zero or more vertex loops of arbitrary shapes.

Constructor

PerforatedCircleState(
    pos: Point2D | None = None,
    scale: float | None = None,
    opacity: float | None = None,
    rotation: float | None = None,
    skew_x: float | None = None,
    skew_y: float | None = None,
    z_index: float = 0.0,
    clip_state: State | None = None,
    mask_state: State | None = None,
    clip_states: List[State] | None = None,
    mask_states: List[State] | None = None,
    filter: Filter | None = None,
    NON_INTERPOLATABLE_FIELDS: frozenset[str] = frozenset({'NON_INTERPOLATABLE_FIELDS'}),
    fill_color: Optional[Color] = Color.NONE,
    fill_opacity: float = 1,
    fill_gradient: Optional[Gradient] = None,
    fill_pattern: Optional[Pattern] = None,
    stroke_color: Optional[Color] = Color.NONE,
    stroke_opacity: float = 1,
    stroke_width: float = 1,
    stroke_gradient: Optional[Gradient] = None,
    stroke_pattern: Optional[Pattern] = None,
    closed: bool = True,
    _num_vertices: Optional[int] = None,
    _aligned_contours: Optional[VertexContours] = None,
    holes: List[Shape] = <factory>,
    holes_fill_color: Optional[Color] = Color.NONE,
    holes_fill_opacity: Optional[float] = 0,
    holes_stroke_color: Optional[Color] = Color.NONE,
    holes_stroke_opacity: float | None = None,
    holes_stroke_width: float | None = None,
    radius: float = 100
) -> None

Methods

get_contours

get_contours()

Get contours for this shape

get_renderer_class

get_renderer_class()

Get the primitive renderer for static/keystate rendering

get_vertex_renderer_class

get_vertex_renderer_class()

Get the vertex renderer for morphing transitions

get_vertices

get_vertices()

Get outer contour vertices (backwards compatibility)

is_angle

is_angle(field: Field) -> bool

need_morph

need_morph(state)

with_x

with_x(x: float) -> State

with_y

with_y(y: float) -> State

Properties

x
y