Paint
Paint
#
A description of the style to use when drawing a shape on the canvas.
anti_alias
#
anti_alias: bool | None = None
Whether to apply anti-aliasing to lines and images drawn on the canvas.
Defaults to True
.
blend_mode
#
blend_mode: BlendMode | None = None
A blend mode to apply when a shape is drawn or a layer is composited.
Defaults to BlendMode.SRC_OVER
.
color
#
color: ColorValue | None = None
The https://flet.dev/docs/reference/colors to use when stroking or filling a shape. Defaults to opaque black.
copy_with
#
copy_with(
*,
color: ColorValue | None = None,
blend_mode: BlendMode | None = None,
blur_image: BlurValue | None = None,
anti_alias: bool | None = None,
gradient: PaintGradient | None = None,
stroke_cap: StrokeCap | None = None,
stroke_join: StrokeJoin | None = None,
stroke_miter_limit: Number | None = None,
stroke_width: Number | None = None,
stroke_dash_pattern: list[Number] | None = None,
style: PaintingStyle | None = None,
) -> Paint
Returns a copy of this object with the specified properties overridden.