UNPKG

fast-2d-poisson-disk-sampling

Version:

Fast 2D Poisson Disk Sampling based on a modified Bridson algorithm

10 lines (8 loc) 210 B
"use strict"; function tinyNDArrayOfInteger (gridShape) { return { strideX: gridShape[1], data: new Uint32Array(gridShape[0] * gridShape[1]) }; } module.exports = tinyNDArrayOfInteger;