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 class-attribute instance-attribute #

height: Number = 0

The height of the rectangle containing the oval.

paint class-attribute instance-attribute #

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

A style to draw an oval with.

width class-attribute instance-attribute #

width: Number = 0

The width of the rectangle containing the oval.

x instance-attribute #

x: Number

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

y instance-attribute #

y: Number

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