Methods




love.graphics.getTransform()

Gets a copy of the Transform object for the current coordinate transformation.

@return transform — A copy of the Transform object for the current coordinate transformation.

Returns:

transform: love.Transform

A copy of the Transform object for the current coordinate transformation.



love.graphics.getTransformRef()

Gets a direct reference of the Transform object for the current coordinate transformation.

@return transform_ref — A direct reference of the Transform object for the current coordinate transformation.

Returns:

transform_ref: love.Transform

A direct reference of the Transform object for the current coordinate transformation.



love.graphics.inverseTransformPoint(screenX: any, screenY: any)

Arguments:

screenX: any
screenY: any






love.graphics.printfOutline(text: string, x: number, y: number, outline: number, limit: number?, align: (love.AlignMode)?, r: number?, sx: number?, sy: number?, ox: number?, oy: number?, kx: number?, ky: number?)

Draws formatted text, with word wrap, alignment and outline.

See additional notes in love.graphics.print.

The word wrap limit is applied before any scaling, rotation, and other coordinate transformations. Therefore the amount of text per line stays constant given the same wrap limit, even if the scale arguments change.

@param text — A text string.

@param x — The position on the x-axis.

@param y — The position on the y-axis.

@param outline — The size of the outline.

@param limit — Wrap the line after this many horizontal pixels.

@param align — The alignment.

@param r — Orientation (radians).

@param sx — Scale factor (x-axis).

@param sy — Scale factor (y-axis).

@param ox — Origin offset (x-axis).

@param oy — Origin offset (y-axis).

@param kx — Shearing factor (x-axis).

@param ky — Shearing factor (y-axis).

Arguments:

text: string

A text string.

x: number

The position on the x-axis.

y: number

The position on the y-axis.

outline: number

The size of the outline.

limit: number?

Wrap the line after this many horizontal pixels.

align: (love.AlignMode)?

The alignment.

r: number?

Orientation (radians).

sx: number?

Scale factor (x-axis).

sy: number?

Scale factor (y-axis).

ox: number?

Origin offset (x-axis).

oy: number?

Origin offset (y-axis).

kx: number?

Shearing factor (x-axis).

ky: number?

Shearing factor (y-axis).









love.graphics.rotate(angle: any)

Arguments:

angle: any


love.graphics.scale(sx: any, sy: any)

Arguments:

sx: any
sy: any


love.graphics.shear(kx: any, ky: any)

Arguments:

kx: any
ky: any


love.graphics.transformPoint(globalX: any, globalY: any)

Arguments:

globalX: any
globalY: any


love.graphics.translate(dx: any, dy: any)

Arguments:

dx: any
dy: any



Fields



Undocumented