themer/README.md

35 lines
1.6 KiB
Markdown
Raw Normal View History

2017-01-24 02:07:59 +00:00
# themer-wallpaper-block-wave [![Travis](https://img.shields.io/travis/mjswensen/themer-wallpaper-block-wave.svg)](https://travis-ci.org/mjswensen/themer-wallpaper-block-wave)
2017-07-19 19:00:10 +00:00
[![Sponsor](https://app.codesponsor.io/embed/hHKoUkX4tpsdAzjvSfNXFb22/mjswensen/themer-wallpaper-block-wave.svg)](https://app.codesponsor.io/link/hHKoUkX4tpsdAzjvSfNXFb22/mjswensen/themer-wallpaper-block-wave)
2016-11-29 14:00:14 +00:00
A wallpaper template for [themer](https://github.com/mjswensen/themer).
2016-11-27 06:44:14 +00:00
## Installation & usage
Install this module wherever you have `themer` installed:
2017-07-04 03:33:17 +00:00
npm install themer-wallpaper-block-wave
2016-11-27 06:44:14 +00:00
2017-08-13 02:02:26 +00:00
Then pass `themer-wallpaper-block-wave` as a `-t` (`--template`) arg to `themer`:
2016-11-27 06:44:14 +00:00
themer -c my-colors.js -t themer-wallpaper-block-wave -o gen
2017-09-05 12:54:02 +00:00
`themer-wallpaper-block-wave` will generate SVG wallpapers to the output directory (`gen/` in this example). (You can then convert them to a bitmap format, if necessary, [using Chrome](https://umaar.com/dev-tips/156-element-screenshot/) or other tools.)
2016-11-27 06:44:14 +00:00
### Default resolutions
By default, `themer-wallpaper-block-wave` will output wallpapers at the following sizes:
* 2880 by 1800 (desktop)
* 750 by 1334 (device)
### Custom resolutions
`themer-wallpaper-block-wave` adds the following argument to `themer`:
--themer-wallpaper-block-wave-size
to which you would pass `<width>x<height>`. For example, to forego the default resolutions and generate two wallpapers, one 1024 by 768 and one 320 by 960:
themer -c my-colors.js -t themer-wallpaper-block-wave --themer-wallpaper-block-wave-size 1024x768 --themer-wallpaper-block-wave-size 320x960 -o gen