Nomnom Pumpernickle Muffins
    Wondering what’s next for npm?Check out our public roadmap! »

    @bbkkbkk/canvas-filter

    0.0.0-alpha.2 • Public • Published

    canvas-filter

    canvas滤镜函数。 函数参考了https://blog.csdn.net/u010081689/article/details/49071371

    滤镜方法

    灰度滤镜:canvasFilter.grayScale

    • imageData { ImageData }
    • options { object }
      • r { number }
      • g { number }
      • b { number }

    黑白滤镜:canvasFilter.blackAndWhite

    • imageData { ImageData }
    • options { object }
      • r { number }
      • g { number }
      • b { number }
      • criticalPoint { number }

    反色滤镜:canvasFilter.inverted

    • imageData { ImageData }
    • options { object }
      • adjustmentR { number }
      • adjustmentG { number }
      • adjustmentB { number }

    模糊滤镜:canvasFilter.blur

    • imageData { ImageData }
    • options { object }
      • coefficient { number }

    马赛克:canvasFilter.mosaic

    • imageData { ImageData }
    • options { object }
      • size { number }

    Keywords

    none

    Install

    npm i @bbkkbkk/canvas-filter

    DownloadsWeekly Downloads

    3

    Version

    0.0.0-alpha.2

    License

    none

    Unpacked Size

    20 kB

    Total Files

    18

    Last publish

    Collaborators

    • avatar