S or /

SourceClass EllipseShape

from egui import EllipseShape
class EllipseShape:

How to paint an ellipse.

Properties§

@property def angle(self, /) -> float§
@angle.setter def angle(self, /, angle: float) -> None§
@property def center(self, /) -> Pos2§
@center.setter def center(self, /, center: Pos2) -> None§
@property def fill(self, /) -> Color32§
@fill.setter def fill(self, /, fill: Color32) -> None§
@property def radius(self, /) -> Vec2§
@radius.setter def radius(self, /, radius: Vec2) -> None§
@property def stroke_value(self, /) -> Stroke§
@stroke_value.setter def stroke_value(self, /, stroke: Stroke) -> None§

Methods§

Source@staticmethod def filled(center: Pos2, radius: Vec2, fill_color: Color32) -> EllipseShape§
Source@staticmethod def stroke(center: Pos2, radius: Vec2, stroke: Stroke) -> EllipseShape§
Sourcedef visual_bounding_rect(self, /) -> Rect§

The visual bounding rectangle (includes stroke width)

Sourcedef with_angle(self, /, angle: float) -> EllipseShape§

Set the rotation of the ellipse (in radians, clockwise). The ellipse rotates around its center.

Sourcedef with_angle_and_pivot(self, /, angle: float, pivot: Pos2) -> EllipseShape§

Set the rotation of the ellipse (in radians, clockwise) around a custom pivot point.