Skip to main content

ChromaKey

chromaKey removes pixels that match a target color, which is useful for green-screen style effects.

interface ChromaKey {
color: string;
similarity?: number;
blend?: number;
}
PropertyRequiredRange/formatNotes
colorYeshex colorExample: "#00ff00".
similarityNo0 to 100Higher values match more colors.
blendNo0 to 100Softens the keyed edge.

Example

{
"chromaKey": {
"color": "#00ff00",
"similarity": 18,
"blend": 8
}
}

Used By

For HTML elements, use CSS (background, mix-blend-mode) through customCode instead of chromaKey.

A green-screen clip keyed over a background video (the green source was itself rendered by Zvid)