The key or identifier for the entity.
Optionalprops: TThe properties for the entity.
Optionalaction: ((time: number, ctx: CanvasRenderingContext2D, properties: T, sequence?: Sequence, entity?: Canvas2DEntity<T>) => void)The action function that defines the entity's behavior.
Optionalsequence: SequenceOptionalentity: Canvas2DEntity<T>OptionalstartTimeinMs: numberOptionaldurationInMs: numberOptionalw: numberThe width of the entity's canvas.
Optionalh: numberThe height of the entity's canvas.
OptionalactionThe action function that defines the entity's behavior.
OptionalbarOptionalbeatOptionaldurationOptionalhThe height of the entity's canvas.
The key or identifier for the entity.
OptionalpropsThe properties for the entity.
OptionalsceneOptionalstartOptionaltickOptionaltransitionOptionaltransitionOptionalwThe width of the entity's canvas.
Copies the entity's canvas to the target canvas and applies post-processors.
The target canvas to copy to.
The Sequence instance.
Adds an event listener for when a bar is complete.
The Entity instance for chaining.
Adds an event listener for when a beat occurs.
The Entity instance for chaining.
Adds an event listener for when a tick occurs.
The Entity instance for chaining.
Creates a new Entity.