Skip to content

lightLeak โ€‹

Washes warm light in from the edges, as light leaking into a film camera.

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

// lightLeak: Washes warm light in from the edges, as light leaking into a film camera.
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="lightLeak" params={{ evolution: 0.4 }}>
            <Keyframe id="k1" param="intensity" at={0.5} value={0} />
            <Keyframe id="k2" param="intensity" at={1.5} value={0.7} 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.

paramtypedefault
colorstring"#ff8a3d"
intensitynumber (0..1)0.6
spreadnumber (0.05..2)0.6
evolutionnumber (0..10)0.15
seedinteger (0..โˆž)0

All effects and transitions ยท Units

MIT licensed.