SourceClass PathStroke
from egui import PathStrokeclass PathStroke:Describes the width and color of paths. The color can either be solid or provided by a callback. For more information, see ColorMode
The default stroke is the same as Stroke.NONE.
Properties§
@property
def color(self, /) -> Color32 |None§
@color.setter
def color(self, /, color: Color32) -> None§
@property
def kind(self, /) -> StrokeKind§
@kind.setter
def kind(self, /, kind: StrokeKind) -> None§
@property
def width(self, /) -> float§
@width.setter
def width(self, /, width: float) -> None§
Methods§
Sourcedef inside(self, /) -> PathStroke§
Set the stroke to be painted entirely inside of the shape
Sourcedef is_empty(self, /) -> bool§
True if width is zero or color is solid and transparent
Sourcedef middle(self, /) -> PathStroke§
Set the stroke to be painted right on the edge of the shape, half inside and half outside.
Source@staticmethod
def new_uv(width: float, callback: Any) -> PathStroke§
Create a new PathStroke with a UV function
The bounding box passed to the callback will have a margin of TessellationOptions.feathering_size_in_pixels
@staticmethod
def new_uv_mirrored_x(width: float, center_color: Color32, outer_color: Color32) -> PathStroke§
@staticmethod
def none() -> PathStroke§
Sourcedef outside(self, /) -> PathStroke§
Set the stroke to be painted entirely outside of the shape