@nbogie/p5.neill-utils
    Preparing search index...

    Function doOverGrid

    • Call a given function repeatedly over the given grid

      Parameters

      • dimensions: { h: number; w: number }

        of grid

      • num: { numCols: number; numRows: number }

        cols and rows

      • cellFn: (
            __namedParameters: {
                indexPos: { colIx: number; rowIx: number };
                pixelPos: SimpleXY;
            },
        ) => void

        a function to be called for each cell. it'll be passed the pixel coords and grid coords.

      Returns void