🌈
Pattern Wall
Pattern Wall: Generate positions for pattern in an area.



Installation
$ npm install --save pattern-wall
Usage
import PatternWall from 'pattern-wall'
const names = ['foo', 'bar', 'baz', 'qux']
const width = 1000
const height = 1000
const pattern = new PatternWall(names, { width, height })
const result = pattern.generate()
console.log(result)
Options
width | number | document.body.clientWidth |
height | number | document.body.clientHeight |
size | number | 200 |
ratio | numer | 0.3 |
Contribution
- Fork (https://github.com/linyows/pattern-wall/fork)
- Create a feature branch
- Commit your changes
- Rebase your local changes against the master branch
- Run test suite with the
npm ci
command and confirm that it passes
- Create a new Pull Request
Author
linyows