Skip to content

Generates colorful images from comma separated numbers

Notifications You must be signed in to change notification settings

PaperPesto/heightmap-rgb-gen

Repository files navigation

heightmap-rgb-gen

Cli tool for generating heightmap from comma separated numbers

github
npm

Installation

Use the package manager npm to install heightmap-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.

About

Generates colorful images from comma separated numbers

Topics

Resources

Stars

Watchers

Forks