directionalBlur
Smears the picture along one direction, as fast motion does. For a radial blur, use zoomBlur.
tsx
import { Clip, Composition, Track } from "@uberscene/kit";
// directionalBlur: Smears the picture along one direction, as fast motion does. For a radial blur, use zoomBlur.
export default function Video() {
return (
<Composition fps={30} width={640} height={360}>
<Track id="main">
<Clip
id="shot"
src="asset:espresso"
in={2}
out={5}
fit="cover"
effects={[
{
type: "directionalBlur",
length: [
{ at: 0.5, value: 0, easing: "easeInOut" },
{ at: 1.5, value: 40 },
],
},
]}
/>
</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.
| param | type | default | description |
|---|---|---|---|
angle | number | 90 | The direction of the streaks, in degrees clockwise from up: 90 smears sideways, 0 up and down. |
length | number (0..1000) | 30 | How long the streaks are, in pixels. |