Skip to main content

media

import {...} from "@motion-canvas/core/lib/media";

Multi-media management.

Classes

Interfaces

Type Aliases

ImageDataSource

type ImageDataSource = CanvasImageSourceheight: numberwidth: number

Functions

getImageData

public getImageDataimage: ImageDataSource: ImageData

Parameters


loadAnimation

public loadAnimationsources: string[]: PromiseHTMLImageElement[]

Parameters


loadImage

public loadImagesource: string: PromiseHTMLImageElement

Parameters