A script to generate images with a gradient of polygons
- Install NodeJS version 14.15.3 or later.
- Install dependencies with
npm i
cnfg.json contains the following parameters:
key | value |
---|---|
dimensions | dimensions of the finished image |
density | approximate size of the triangle, in pixels |
colors | what colors to use |
blend | how much to blend different regions |
Run index.js. An image called out.png will be created in the current directory.