wallangle v1.1.2
Uses the awesome Trianglify to randomly generate a low-poly triangle art desktop wallpaper:
Install
Requires Node.js >= 14.
$ npm install -g wallangle
Usage
Defaults
$ wallangle
With Config
$ wallangle --width=2560 --height=1440 --variance=0.75 --cellSize=250 --seed=helloworld --colors="#083d77,#ebebd3,#da4167,#f4d35e,#f78764"
Flags
These flags set specific options for Trianglify:
--width
Resolution width of your display. Defaults to 3840
.
--height
Resolution height of your display. Defaults to 2160
.
--variance
Decimal value between 0 and 1 (inclusive), defaults to Math.random()
. Specify the amount of randomness used when generating triangles.
--cellSize
Integer, defaults to Math.floor(Math.random() * 200 + 40)
. Specify the size of the mesh used to generate triangles. Larger values will result in coarser patterns, smaller values will result in finer patterns. Note that very small values may dramatically increase the runtime of Trianglify.
--seed
Number or string, defaults to null
. Seeds the random number generator to create repeatable patterns. When set to null, the random number will be seeded with random values from the environment.
--colors
Comma-separated string of CSS-formatted colors. Defaults to 'random'
. You can use a tool such as Coolors to generate color palettes. Example is --colors="#083d77,#ebebd3,#da4167,#f4d35e,#f78764"