ellipse
An ellipse with separate horizontal and vertical radii.
ellipse(x: Val, y: Val, radiusX: Val, radiusY: Val): Expr
Import shape from shaders/std and use shape.ellipse.
radiusX and radiusY are the half-widths along each axis, in uv.
Parameters
| Name | Type | Notes |
|---|---|---|
x | Val | |
y | Val | |
radiusX | Val | |
radiusY | Val |
Example
shape: {distance: ({x, y}, u) => ellipse(x, y, u('radiusX'), u('radiusY')), …}
See also
circle— A circle of a given radius.roundedRect— A rectangle with rounded corners.