The key or identifier for the entity.
Optional
props: TThe properties for the entity.
Optional
action: ((time: number, ctx: CanvasRenderingContext2D, properties: T, sequence?: Sequence, entity?: Canvas2DEntity<T>) => void)The action function that defines the entity's behavior.
Optional
sequence: SequenceOptional
entity: Canvas2DEntity<T>Optional
startTimeinMs: numberOptional
durationInMs: numberOptional
w: numberThe width of the entity's canvas.
Optional
h: numberThe height of the entity's canvas.
Optional
actionThe action function that defines the entity's behavior.
Optional
barOptional
beatOptional
durationOptional
hThe height of the entity's canvas.
The key or identifier for the entity.
Optional
propsThe properties for the entity.
Optional
sceneOptional
startOptional
tickOptional
transitionOptional
transitionOptional
wThe 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.