ミ☆ Stripes Maker ☆彡
Node.js stripe pattern generator and maker. It can create multi-line static and animated SVG stripe patterns.
Table of Contents
How to use
- Install the module using npm:
npm install stripes-maker
- Edit stripes.config.js file.
- Run
npm start
- The output SVG file will be in the './out/' folder.
stripes.config.js
This is an example stripes configuration file that will create an SVG file with four stripes.
const config = {
out: './out/example.svg',
width: 300,
height: 300,
bgColor: '#fff',
lineRotation: 45,
animationType: 4,
animationDuration: 30,
stripes: [
{
color: '#505050',
size: 20,
},
{
color: '#92CBFA',
size: 10,
},
{
color: '#AB3C83',
size: 20,
},
{
color: '#ffffff',
size: 10,
}
]
};
Animation Types
There are four possible types of animation that can be specified in the configuration file.
- NoAnimation = 1
- RotateClockWise = 2
- RotationCounterClockwise = 3
- Linear = 4
How to run from another folder
The script can also be run globally using the following command:
stripes-maker
You can also pass another configuration file:
stripes-maker another.config.js