0.1.1 • Published 5 years ago

alpha-mix v0.1.1

Weekly downloads
3
License
MIT
Repository
github
Last release
5 years ago

@mtlabai/alpha-mix

Tool for merging mask images and background images.

Demo

Online Demo

demo

Install

npm i -S @mtlabai/alpha-mix

Usage

React/Vue usage

import AlphaMix from '@mtlabai/alpha-mix"';

VanillaJS usage

<script src="path/to/alpha-mix.min.js"></script>

Initialize

AlphaMix(originImgData, maskImgData, bgImgData), returns result ImageData.

  • originImgData - ImageData - origin ImageData .
  • maskImgData - ImageData - mask ImageData.
  • bgImgData - ImageData - background ImageData.

For example:

var resultImgData = AlphaMix(originImgData, maskImgData, bgImgData)

Like @widgetjs/tree? just 🌟 star the project! Create issues if you find bug.

0.1.1

5 years ago

0.1.0

5 years ago

0.0.1

5 years ago

1.0.1

5 years ago