Socket
Socket
Sign inDemoInstall

crayon-draw

Package Overview
Dependencies
0
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    crayon-draw

蜡笔效果 crayon


Version published
Maintainers
1
Created

Readme

Source

蜡笔效果画线 crayon-style line

inspired by fabric-brush but without any dependences

Quickstart

npm install crayon-draw --save

OR

<script src="https://cdn.jsdelivr.net/npm/crayon-draw@1.0.0/dist/crayon-draw.min.js"></script>

How to use


import CrayonDraw from 'crayon-draw';

const instance = new CrayonDraw('myCanvasId');

// set line color
instance.setColor('#000000');
// set line opacity
instance.setOpacity(1);
// set "dot density" level
instance.setInkAmount(1);
// set line width
instance.setWidth(10);

Online Demo

click to jump

License

MIT@elvin

Keywords

FAQs

Last updated on 27 Mar 2021

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc