Skip to content

Oval

Inherits: Shape

Draws an axis-aligned oval that fills the given axis-aligned rectangle with the given paint.

The style property of paint indicates whether this oval is filled, stroked, or both.

Properties

  • height(Number) –

    The height of the rectangle containing the oval.

  • paint(Paint) –

    A style to draw an oval with.

  • width(Number) –

    The width of the rectangle containing the oval.

  • x(Number) –

    The x-axis coordinate of the oval's top left point.

  • y(Number) –

    The y-axis coordinate of the oval's top left point.

Properties#

height #

height: Number = 0

The height of the rectangle containing the oval.

paint #

paint: Paint = field(default_factory=lambda: Paint())

A style to draw an oval with.

width #

width: Number = 0

The width of the rectangle containing the oval.

x #

x: Number

The x-axis coordinate of the oval's top left point.

y #

y: Number

The y-axis coordinate of the oval's top left point.