SourceClass CircleShape
from egui import CircleShapeclass CircleShape:How to paint a circle.
Properties§
@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, /) -> float§
@radius.setter
def radius(self, /, radius: float) -> 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: float, fill_color: Color32) -> CircleShape§
Source@staticmethod
def stroke(center: Pos2, radius: float, stroke: Stroke) -> CircleShape§
Sourcedef visual_bounding_rect(self, /) -> Rect§
The visual bounding rectangle (includes stroke width)