UNPKG

pencil.js

Version:

Nice modular interactive 2D drawing library.

27 lines (17 loc) 449 B
# Ellipse Ellipse shape (oval). ![Ellipse example](../../../media/examples/ellipse.png) ## Examples ```js import { Ellipse } from "pencil.js"; const position = [100, 200]; const width = 50; const height = 20; const options = { fill: "red", }; const ellipse = new Ellipse(position, width, height, options); ``` ## EllipseOptions Inherit from [ComponentOptions](../component/readme.md#componentoptions). Ellipse have no specific options.