New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

spatter

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

spatter

A package for creating a paint drop on papter effect using canvas and svgs.

latest
npmnpm
Version
1.0.0-rc1
Version published
Maintainers
1
Created
Source

Spatter

A package for creating a watercolor on paper effect using svgs and canvas.

Example:

Demo coming soon. 4/10/17

    const Spatter = require('spatter');

    let spatter = new Spatter(
        document.getElementById('canvas'),
        {
            bgSrc: 'http://placehold.it/500x300',
            onComplete: () => {
                console.log('complete');
            },
            onStart: () => {
                console.log('started');
            },
        }
    );

    spatter.begin();

Parameters

canvas - *required

This is the canvas that you want the drawing to take place on.

opts - optional

Can include callbacks for onStart, onComplete, and a background image for the canvas.

Usage

NPM

Feedback ✉️

It is greatly appreciated! 🎉 Please hit me up, I'd love to hear what you have to say!

messagethesmith@gmail.com

https://github.com/limeandcoconut

@limeandcoconut

Cheers!

TODO:

  • More comprehensive docs
  • Link to example
  • Run off of powertrain
  • Use dt to ensure that timing is accurate
  • Throw if Droplet has not been configured or passed opts

License

MIT, see LICENSE.md for details.

Keywords

spatter

FAQs

Package last updated on 10 Apr 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts