Skip to main content

Oval

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.

Inherits: canvas.Shape

Properties

  • height - The height of the rectangle containing the oval.
  • paint - A style to draw an oval with.
  • width - The width of the rectangle containing the oval.
  • x - The x-axis coordinate of the oval's top left point.
  • y - The y-axis coordinate of the oval's top left point.

Properties

heightclass-attributeinstance-attribute

height: Number = 0

The height of the rectangle containing the oval.

paintclass-attributeinstance-attribute

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

A style to draw an oval with.

widthclass-attributeinstance-attribute

width: Number = 0

The width of the rectangle containing the oval.

xinstance-attribute

x: Number

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

yinstance-attribute

y: Number

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