Skip to content

whiteBalance ​

Warms or cools the picture, and tints it toward green or magenta.

tsx
import { Clip, Composition, Effect, Keyframe, Track } from "@cutcraft/kit";

// whiteBalance: Warms or cools the picture, and tints it toward green or magenta.
export default function Video() {
  return (
    <Composition fps={30} width={640} height={360}>
      <Track id="main">
        <Clip id="shot" src="asset:coffee" in={12} out={15} fit="cover">
          <Effect id="look" type="whiteBalance">
            <Keyframe id="k1" param="temperature" at={0.5} value={0} />
            <Keyframe id="k2" param="temperature" at={1.5} value={0.6} easing="ease-in-out" />
          </Effect>
        </Clip>
      </Track>
    </Composition>
  );
}

The coffee footage is Pixabay videos 209419 and 209424, under the Pixabay Content License.

Params ​

Drawn as a shader, with a CSS filter where WebGL is missing.

paramtypedefault
temperaturenumber (-1..1)0
tintnumber (-1..1)0

All effects and transitions · Units

MIT licensed.