LifeLua 30-05-2025
Documentation for LifeLua
Loading...
Searching...
No Matches
image

Image library. More...

Functions

image image.load (string path)
 
image image.new (number w, number h, color color)
 
nil image.display (image image, number x, number y, color tint)
 
nil image.scaledisplay (image image, number x, number y, number scale_x, number scale_y, color tint)
 
nil image.rotatedisplay (image image, number x, number y, number radius, color tint)
 
number image.width (image image)
 
number image.height (image image)
 

Detailed Description

Method calling will work on most of the functions here (e. g. image:display, image:width, etc.)

Function Documentation

◆ image.display()

nil image.display ( image image,
number x,
number y,
color tint )

Displays an image to the screen

Parameters
tintoptional

◆ image.height()

number image.height ( image image)

Gets height of an image

◆ image.load()

image image.load ( string path)

Loads an image, can be a .PNG, .BMP, or a .JPG/.JPEG

◆ image.new()

image image.new ( number w,
number h,
color color )

Creates a new image

Parameters
colorOptional, will default to white

◆ image.rotatedisplay()

nil image.rotatedisplay ( image image,
number x,
number y,
number radius,
color tint )

Displays a rotated image to the screen

Parameters
tintoptional

◆ image.scaledisplay()

nil image.scaledisplay ( image image,
number x,
number y,
number scale_x,
number scale_y,
color tint )

Displays a scaled image to the screen

Parameters
tintoptional

◆ image.width()

number image.width ( image image)

Gets width of an image