parcel-transformer-rough-svg

0.1.2 • Public • Published

parcel-transformer-rough-svg

A Parcel transformer to rough up SVGs using Rough.js (and rougher).

Installation

Add the library as a dependency:

npm install --save-dev parcel-transformer-rough-svg

Add the library to your .parcelrc file:

{
  "extends": "@parcel/config-default",
  "transformers": {
    "*.svg": ["...", "parcel-transformer-rough-svg"]
  }
}

Usage

Add a roughness query string parameter to your SVG paths, for example:

<img src="image.svg?roughness=0.75" />

Package Sidebar

Install

npm i parcel-transformer-rough-svg

Weekly Downloads

0

Version

0.1.2

License

MIT

Unpacked Size

4.52 kB

Total Files

5

Last publish

Collaborators

  • thewilkybarkid