ixfx
    Preparing search index...

    Namespace SurfacePoints

    Functions for producing points within a shape. Useful for creating patterns.

    Overview:

    Functions

    circleVogelSpiral

    Generates points on a Vogel spiral - a sunflower-like arrangement of points.

    ring

    Yields points distributed around a ring.

    // 5 points evenly distributed
    for (const point of ring(circle, { count: 5})) {
    // { x, y }
    sphereFibonacci

    Fibonacci sphere algorithm. Generates points distributed on a sphere.

    Type Aliases

    RingOptionsCount
    RingOptionsDegreeInterval
    RingOptionsRadianInterval
    VogelSpiralOpts

    Options for a Vogel spiral