heart

A heart, point down at rotation 0.

heart(x: Val, y: Val, radius: Val): Expr

Import shape from shaders/std and use shape.heart.

radius is the size it is fitted into, in uv.

Parameters

NameTypeNotes
xVal
yVal
radiusVal

Example

shape: {distance: ({x, y}, u) => heart(x, y, u('radius')), bounds: {size: {width: 'radius', height: 'radius'}}, …}

See also

  • teardrop — A teardrop: a round bulb tapering to a sharp point, point up at rotation 0.
  • circle — A circle of a given radius.

Used by

Heart