Skip to content

marble3 / loadTexture

Function: loadTexture() ​

loadTexture(path): Texture

Defined in: src/texture.ts:6

Loads a texture for pixel art: sRGB, with nearest-neighbour filtering so texels stay sharp.

Parameters ​

path ​

string

Returns ​

Texture