teardrop
A teardrop: a round bulb tapering to a sharp point, point up at rotation 0.
teardrop(x: Val, y: Val, radius: Val, height: Val): Expr
Import shape from shaders/std and use shape.teardrop.
radius is the bulb's radius and height the distance from the bulb's centre to the point, both in uv.
Parameters
| Name | Type | Notes |
|---|---|---|
x | Val | |
y | Val | |
radius | Val | |
height | Val |
Example
shape: {distance: ({x, y}, u) => teardrop(x, y, u('radius'), u('height')), …}
See also
heart— A heart, point down at rotation 0.ellipse— An ellipse with separate horizontal and vertical radii.