Classes

Concepts

Libraries

advertisement »

ambientSounds »

bitser »

contentPoints »

eventBoxText »

factValidity »

frameBuffer »

officeBuildingInserter »

priorityRenderer »

randomEvents »

scaling »

spritesheetParser »

statusIcons »

test3 »

util »

Objects

newImageNamed

Description

Load an image from the specified file with a specified name.

Arguments

1 string name

the key to use for the image.

2 string path

the path to the image file.

3 string wrapTypeH

the horizontal image wrapping mode. Refer to love2d documentation for this.

4 string wrapTypeV

the vertical image wrapping mode. Refer to love2d documentation for this.

5 FilterMode filterMin

the filter to use when rendering this texture when zoomed out. Refer to the love2d documentation for this.

6 FilterMode filterMag

the filter to use when rendering this texture when zoomed in. Refer to the love2d documentation for this.

Returns

1 Image

the newly loaded image.