heightmap-rgb-gen

1.0.8 • Public • Published

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

alt text

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.

Dependencies (3)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i heightmap-rgb-gen

    Weekly Downloads

    1

    Version

    1.0.8

    License

    ISC

    Unpacked Size

    5.77 kB

    Total Files

    7

    Last publish

    Collaborators

    • paperpesto