Constructor


AfterImage(sprite: any, fade: any, speed: any)

Arguments:

sprite: any
fade: any
speed: any




Methods


AfterImage:applyTransformTo(transform: any)

Arguments:

transform: any




AfterImage:onAdd(parent: any)

Arguments:

parent: any





Fields



Undocumented





AfterImage.canvas: love.Canvas

A Canvas is used for off-screen rendering. Think of it as an invisible screen that you can draw to, but that will not be visible until you draw it to the actual visible screen. It is also known as "render to texture".

By drawing things that do not change position often (such as background items) to the Canvas, and then drawing the entire Canvas instead of each item, you can reduce the number of draw operations performed each frame.

In versions prior to love.graphics.isSupported("canvas") could be used to check for support at runtime.

Open in Browser



AfterImage.canvas: nil

A Canvas is used for off-screen rendering. Think of it as an invisible screen that you can draw to, but that will not be visible until you draw it to the actual visible screen. It is also known as "render to texture".

By drawing things that do not change position often (such as background items) to the Canvas, and then drawing the entire Canvas instead of each item, you can reduce the number of draw operations performed each frame.

In versions prior to love.graphics.isSupported("canvas") could be used to check for support at runtime.

Open in Browser