Switch branches/tags
themer-xcode-v2.0.4 themer-xcode-v2.0.3 themer-xcode-v2.0.2 themer-xcode-v2.0.1 themer-xcode-v2.0.0 themer-xcode-v1.0.0 themer-wallpaper-trianglify-v1.0.2 themer-wallpaper-trianglify-v1.0.1 themer-wallpaper-triangles-v2.0.5 themer-wallpaper-triangles-v2.0.4 themer-wallpaper-triangles-v2.0.3 themer-wallpaper-triangles-v2.0.2 themer-wallpaper-triangles-v2.0.1 themer-wallpaper-triangles-v2.0.0 themer-wallpaper-triangles-v1.0.1 themer-wallpaper-triangles-v1.0.0 themer-wallpaper-octagon-v3.0.1 themer-wallpaper-octagon-v3.0.0 themer-wallpaper-octagon-v2.0.3 themer-wallpaper-octagon-v2.0.2 themer-wallpaper-octagon-v2.0.1 themer-wallpaper-octagon-v2.0.0 themer-wallpaper-octagon-v1.0.4 themer-wallpaper-octagon-v1.0.3 themer-wallpaper-octagon-v1.0.2 themer-wallpaper-octagon-v1.0.1 themer-wallpaper-octagon-v1.0.0 themer-wallpaper-block-wave-v3.0.1 themer-wallpaper-block-wave-v3.0.0 themer-wallpaper-block-wave-v2.0.3 themer-wallpaper-block-wave-v2.0.2 themer-wallpaper-block-wave-v2.0.1 themer-wallpaper-block-wave-v2.0.0 themer-wallpaper-block-wave-v1.0.4 themer-wallpaper-block-wave-v1.0.3 themer-wallpaper-block-wave-v1.0.2 themer-wallpaper-block-wave-v1.0.1 themer-wallpaper-block-wave-v1.0.0 themer-vscode-v2.0.1 themer-vscode-v2.0.0 themer-vscode-v1.2.0 themer-vscode-v1.1.0 themer-vscode-v1.0.6 themer-vscode-v1.0.5 themer-vscode-v1.0.4 themer-vscode-v1.0.3 themer-vscode-v1.0.2 themer-vscode-v1.0.1 themer-vscode-v1.0.0 themer-vim-v3.0.1 themer-vim-v3.0.0 themer-vim-v2.2.9 themer-vim-v2.2.8 themer-vim-v2.2.7 themer-vim-v2.2.6 themer-vim-v2.2.5 themer-vim-v2.2.4 themer-vim-v2.2.3 themer-vim-v2.2.2 themer-vim-v2.2.1 themer-vim-v2.2.0 themer-vim-v2.1.0 themer-vim-v2.0.0 themer-vim-v1.0.0 themer-vim-lightline-v3.0.1 themer-vim-lightline-v3.0.0 themer-vim-lightline-v2.0.7 themer-vim-lightline-v2.0.6 themer-vim-lightline-v2.0.5 themer-vim-lightline-v2.0.4 themer-vim-lightline-v2.0.3 themer-vim-lightline-v2.0.2 themer-vim-lightline-v2.0.1 themer-vim-lightline-v2.0.0 themer-vim-lightline-v1.0.0 themer-v3.1.4 themer-v3.1.3 themer-v3.1.2 themer-v3.1.1 themer-v3.1.0 themer-v3.0.0 themer-v2.2.4 themer-v2.2.3 themer-v2.2.2 themer-v2.2.1 themer-v2.2.0 themer-v2.1.0 themer-v2.0.0 themer-v1.2.1 themer-v1.2.0 themer-v1.0.2 themer-v1.0.1 themer-v1.0.0 themer-terminal-v2.0.1 themer-terminal-v2.0.0 themer-terminal-v1.0.5 themer-terminal-v1.0.4 themer-terminal-v1.0.3 themer-terminal-v1.0.2 themer-terminal-v1.0.1
Nothing to show
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.

README.md

themer-wallpaper-trianglify

A wallpaper template for themer. It uses the popular trianglify library to generate wallpapers from your color set.

Here's a preview using themer's default color set:

dark desktop

Installation & usage

Install this module wherever you have themer installed:

npm install themer-wallpaper-trianglify

Then pass themer-wallpaper-trianglify as a -t (--template) arg to themer:

themer -c my-colors.js -t themer-wallpaper-trianglify -o gen

themer-wallpaper-trianglify will generate SVG wallpapers to the output directory (gen/ in this example).

Default resolutions

By default, themer-wallpaper-trianglify will output wallpapers at the following sizes:

  • 2880 by 1800 (desktop)
  • 750 by 1334 (device)

Custom resolutions

themer-wallpaper-trianglify adds the following argument to themer:

--themer-wallpaper-trianglify-size

to which you would pass <width>x<height>. For example, to forego the default resolutions and generate wallpapers in two resolutions, 1024 by 768 and 320 by 960:

themer -c my-colors.js -t themer-wallpaper-trianglify --themer-wallpaper-trianglify-size 1024x768 --themer-wallpaper-trianglify-size 320x960 -o gen

Variance

themer-wallpaper-trianglify also adds an option to themer for configuring the randomness of the triangles generated by trianglify:

--themer-wallpaper-trianglify-variance <variance>

Accepts a float between 0 and 1, defaults to 0.75 (see trianglify docs). Like --themer-wallpaper-trianglify-size, this option can be provided multiple times—themer will generate a complete set of wallpapers for each value passed.