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​

Property fragment for a media visual. similarity and blend are unitless amounts on a 0–100 scale, not 0–1 fractions; supply them explicitly for a repeatable look. The preview demonstrates this feature with its recorded fixture.

{
"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)
Watch video