canvas-noise

    1.0.0 • Public • Published

    cnavas-noise

    Worker 多线程实现 开源噪点算法

    安装

    $ npm i canvas-noise
     
    # 或者 
     
    $ yarn add canvas-noise

    使用

    import canvasNoise from 'canvas-noise'
     
    canvasNoise({
      // 需要描绘的 canvas html 对象
      canvas: HTMLCanvasElement,
      // 噪点强度(默认值为 0.04)
      intensity: 0.05
    })

    Keywords

    none

    Install

    npm i canvas-noise

    DownloadsWeekly Downloads

    0

    Version

    1.0.0

    License

    MIT

    Unpacked Size

    9.23 kB

    Total Files

    3

    Last publish

    Collaborators

    • yyued