Simple implementation of heightmap generation for video game terrain rendering. Demo here
npm install heightmap-generator
import heightmap from 'heightmap-generator'
const noise = generateNoise(size, height, revert)
- size: map size
- height: Number of desired height level
- revert: reverse colors
- noise: output matrix
MIT