dist.radial
A round or elliptical gradient spreading out from a center.
dist.radial(slots: {center: PropRef; radius: FieldScalar; aspect: FieldScalar; skew: FieldScalar}): Field
Import paint from shaders/std and use paint.dist.radial.
0 at center, 1 at radius (a fraction of the canvas height). aspect 1 is a circle, larger values squeeze it horizontally. skew in degrees tilts the ellipse.
Parameters
| Name | Type | Notes |
|---|---|---|
slots | {center: PropRef; radius: FieldScalar; aspect: FieldScalar; skew: FieldScalar} |
Example
paint: rampOver(rings(dist.radial({center: p('center'), radius: p('radius'), aspect: p('aspect'), skew: p('skewAngle')}), p('repeat')), stops(p('colorSpace')))
See also
rings— Repeats a field as concentric bands.