dist.conic

A sweep around a center, like a clock hand: 0 to 1 once around.

dist.conic(slots: {center: PropRef; rotation: FieldScalar}): Field

Import paint from shaders/std and use paint.dist.conic.

The sweep starts at the left of the center and runs counter-clockwise. rotation in degrees moves the start. Wrap it in tiles to repeat the sweep.

Parameters

NameTypeNotes
slots{center: PropRef; rotation: FieldScalar}

Example

paint: rampOver(tiles(dist.conic({center: p('center'), rotation: p('rotation')}), p('repeat')), stops(p('colorSpace')))

See also

  • tiles — Repeats a field count times, always wrapping.

Used by

ConicGradient