Scope "Trianglify" wallpaper package
This commit is contained in:
parent
42afe7ad31
commit
02a4050910
@ -266,7 +266,7 @@ Refer to the [base16 repository](https://github.com/chriskempson/base16#scheme-r
|
||||
* [@themer/wallpaper-block-wave](https://github.com/mjswensen/themer/tree/master/cli/packages/wallpaper-block-wave)
|
||||
* [@themer/wallpaper-octagon](https://github.com/mjswensen/themer/tree/master/cli/packages/wallpaper-octagon)
|
||||
* [@themer/wallpaper-triangles](https://github.com/mjswensen/themer/tree/master/cli/packages/wallpaper-triangles)
|
||||
* [themer-wallpaper-trianglify](https://github.com/mjswensen/themer/tree/master/cli/packages/themer-wallpaper-trianglify)
|
||||
* [@themer/wallpaper-trianglify](https://github.com/mjswensen/themer/tree/master/cli/packages/wallpaper-trianglify)
|
||||
* [@themer/wallpaper-shirts](https://github.com/mjswensen/themer/tree/master/cli/packages/wallpaper-shirts)
|
||||
* [@themer/wallpaper-diamonds](https://github.com/mjswensen/themer/tree/master/cli/packages/wallpaper-diamonds)
|
||||
|
||||
|
@ -1,2 +0,0 @@
|
||||
version-tag-prefix themer-wallpaper-trianglify-v
|
||||
version-git-message themer-wallpaper-trianglify-v%s
|
@ -1,20 +0,0 @@
|
||||
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
||||
|
||||
exports[`themer-wallpaper-trianglify options should return proper defaults if none provided 1`] = `
|
||||
Array [
|
||||
Object {
|
||||
"h": 1800,
|
||||
"w": 2880,
|
||||
},
|
||||
Object {
|
||||
"h": 1334,
|
||||
"w": 750,
|
||||
},
|
||||
]
|
||||
`;
|
||||
|
||||
exports[`themer-wallpaper-trianglify options should return proper defaults if none provided 2`] = `
|
||||
Array [
|
||||
0.75,
|
||||
]
|
||||
`;
|
0
cli/packages/themer-wallpaper-trianglify/.gitignore → cli/packages/wallpaper-trianglify/.gitignore
vendored
0
cli/packages/themer-wallpaper-trianglify/.gitignore → cli/packages/wallpaper-trianglify/.gitignore
vendored
2
cli/packages/wallpaper-trianglify/.yarnrc
Normal file
2
cli/packages/wallpaper-trianglify/.yarnrc
Normal file
@ -0,0 +1,2 @@
|
||||
version-tag-prefix @themer/wallpaper-trianglify-v
|
||||
version-git-message @themer/wallpaper-trianglify-v%s
|
@ -1,4 +1,4 @@
|
||||
# themer-wallpaper-trianglify
|
||||
# @themer/wallpaper-trianglify
|
||||
|
||||
A wallpaper template for [themer](https://github.com/mjswensen/themer). It uses the popular [trianglify](https://github.com/qrohlf/trianglify) library to generate wallpapers from your color set.
|
||||
|
||||
@ -10,36 +10,36 @@ Here's a preview using [themer's default color set](https://github.com/mjswensen
|
||||
|
||||
Install this module wherever you have `themer` installed:
|
||||
|
||||
npm install themer-wallpaper-trianglify
|
||||
npm install @themer/wallpaper-trianglify
|
||||
|
||||
Then pass `themer-wallpaper-trianglify` as a `-t` (`--template`) arg to `themer`:
|
||||
Then pass `@themer/wallpaper-trianglify` as a `-t` (`--template`) arg to `themer`:
|
||||
|
||||
themer -c my-colors.js -t themer-wallpaper-trianglify -o gen
|
||||
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).
|
||||
`@themer/wallpaper-trianglify` will generate SVG wallpapers to the output directory (`gen/` in this example).
|
||||
|
||||
The generated files will be listed in `<output dir>/README.md`.
|
||||
|
||||
### Default resolutions
|
||||
|
||||
By default, `themer-wallpaper-trianglify` will output wallpapers at the following sizes:
|
||||
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` 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
|
||||
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` also adds an option to `themer` for configuring the randomness of the triangles generated by trianglify:
|
||||
|
||||
--themer-wallpaper-trianglify-variance <variance>
|
||||
|
Before Width: | Height: | Size: 150 KiB After Width: | Height: | Size: 150 KiB |
@ -0,0 +1,20 @@
|
||||
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
||||
|
||||
exports[`@themer/wallpaper-trianglify options should return proper defaults if none provided 1`] = `
|
||||
Array [
|
||||
Object {
|
||||
"h": 1800,
|
||||
"w": 2880,
|
||||
},
|
||||
Object {
|
||||
"h": 1334,
|
||||
"w": 750,
|
||||
},
|
||||
]
|
||||
`;
|
||||
|
||||
exports[`@themer/wallpaper-trianglify options should return proper defaults if none provided 2`] = `
|
||||
Array [
|
||||
0.75,
|
||||
]
|
||||
`;
|
0
cli/packages/themer-wallpaper-trianglify/lib/opts.js → cli/packages/wallpaper-trianglify/lib/opts.js
0
cli/packages/themer-wallpaper-trianglify/lib/opts.js → cli/packages/wallpaper-trianglify/lib/opts.js
@ -1,6 +1,6 @@
|
||||
const { getSizes, getVariances, getSeed } = require('./opts');
|
||||
|
||||
describe('themer-wallpaper-trianglify options', () => {
|
||||
describe('@themer/wallpaper-trianglify options', () => {
|
||||
it('should return proper defaults if none provided', () => {
|
||||
expect(getSizes()).toMatchSnapshot();
|
||||
expect(getVariances()).toMatchSnapshot();
|
@ -1,5 +1,5 @@
|
||||
{
|
||||
"name": "themer-wallpaper-trianglify",
|
||||
"name": "@themer/wallpaper-trianglify",
|
||||
"version": "1.1.0",
|
||||
"description": "A themer template for generating wallpaper using trianglify.",
|
||||
"main": "lib/index.js",
|
||||
@ -35,5 +35,5 @@
|
||||
"bugs": {
|
||||
"url": "https://github.com/mjswensen/themer/issues"
|
||||
},
|
||||
"homepage": "https://github.com/mjswensen/themer/tree/master/cli/packages/themer-wallpaper-trianglify#readme"
|
||||
"homepage": "https://github.com/mjswensen/themer/tree/master/cli/packages/wallpaper-trianglify#readme"
|
||||
}
|
Loading…
Reference in New Issue
Block a user