chromakey

0.0.1 • Public • Published

chromakey

Minimum chroma key processing for your camera stream.

Install

npm i chromakey

Module is exported as ES Modules.

API

import { create } from "chromakey";
 
const ck = create($videoEl);
 
// getter
console.log(ck.targetColor, ck.targetThreshold);
document.body.append(ck.destination);
 
// setter
ck.setColor([50, 100, 150]);
ck.setColorByOffset(x, y);
ck.setThreshold(15);
ck.setBackgroundMedia($imgOrCanvasOrVideoEl);
ck.setBackgroundColor([100, 0, 100]);
 
ck.start();
ck.stop();

See also https://leader22.github.io/chromakey/

Readme

Keywords

none

Package Sidebar

Install

npm i chromakey

Weekly Downloads

2

Version

0.0.1

License

MIT

Unpacked Size

5.39 kB

Total Files

4

Last publish

Collaborators

  • leader22