heightmap-rgb-gen
v1.0.8
Published
Map generator from heightmap (comma separated numbers file). It process a heightmap as input and generates a png with a graduated color scale (customizable through the arguments)
Downloads
3
Readme
heightmap-rgb-gen
Cli tool for generating heightmap from comma separated numbers
Installation
Use the package manager npm to install heightap-rgb-gen.
npm install heightmap-rgb-gen
Usage
Save a file called heightmap with csv numbers inside and run
npx heightmap-rgb-gen
Example
This file (heightmap)
0,4,2,6,3,0,1,6,8
generates this 3x3 pixel png
Example 2
npx heightmap-rgb-gen heightmap.txt 10 10 'faf450' '0254ff' 10
Requires a 100 comma separated numbers inside heightmap.txt file. It generates a png image heightmap.png of 10x10 pixels with 10 colors from #faf450 to #0254ff.