Skip to content

Le-Juan/heightmap-generator

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Heightmap-generator

Simple implementation of heightmap generation for video game terrain rendering. Demo here

alt tag

Installation

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

License

MIT

Releases

No releases published

Packages

No packages published

Languages

  • HTML 61.0%
  • JavaScript 39.0%