Skip to content

bloom ​

Spreads the picture's highlights into a soft haze. For a halo around a title or a shape, use glow.

tsx
import { Clip, Composition, Track } from "@uberscene/kit";

// bloom: Spreads the picture's highlights into a soft haze. For a halo around a title or a shape, use glow.
export default function Video() {
  return (
    <Composition fps={30} width={640} height={360}>
      <Track id="main">
        <Clip
          id="shot"
          src="asset:redCup"
          in={18}
          out={21}
          fit="cover"
          effects={[
            {
              type: "bloom",
              threshold: 0.7,
              radius: 14,
              intensity: [
                { at: 0.5, value: 0, easing: "easeInOut" },
                { at: 1.5, value: 1.6 },
              ],
            },
          ]}
        />
      </Track>
    </Composition>
  );
}

The coffee footage is Pixabay videos 209419, 209424, 46989 and 251, under the Pixabay Content License. The maker of the machine in the red cup shot has nothing to do with this project.

Params ​

Drawn as a shader.

paramtypedefaultdescription
thresholdnumber (0..1)0.6The brightness the bloom starts from, 0 to 1: only what is brighter spreads its light.
radiusnumber (0..200)12How far the light spreads, in pixels: the blur's standard deviation.
intensitynumber (0..4)1How strong the bloom is, as a multiplier; 0 leaves the picture as it was.

All effects and transitions · Units

MIT licensed.