Ellipse

const { ellipse, state, frame } = canvas.api
ellipse(0, 0, 1)
const t = 2 * frame.time
for (let i = 0; i < 6; ++i) {
	const x = 0.6 * Math.sin(t - i)
	const y = 0.6 * Math.cos(t - i)
	ellipse(x, y, 0.6 - i / 10)
}
ellipse(0, 0, 1 + 2 * frame.pixelSize)
state.color = 1
ellipse(0, 0, 1)

Function

ellipse(x, y, width, height?)
ParameterTypeDefault Value
xnumber-
ynumber-
widthnumber-
heightnumberwidth

State Configuration

The comportment of the function can be modified by editing this state property: