Creates a DuckEngine Texture
The Texture Class. Stores images and colors in a class
2.0.0
Texture type, 'image' | 'color' | 'either'
Creates a texture
Texture type
Texture source
Width of texture
Height of texture
TextureBase
The data type of texture, 'sheet' | 'base' | 'atlas' | 'list'
2.1.0
The unique identifier for the texture
Texture
The scale of the texture
The texture itself, can be an image or color
The type of texture source, 'image' | 'color' | 'either'
Sets the Texture color if the type is color
New color of the texture
Sets the Texture Image Path if the type is image
New imagePath of the texture
Sets the Texture Scale
New scale of the texture
Creates a new TextureBase instance from a color
Color
Width
Height
Creates a new TextureBase instance from a color or an image path
Color or Image path
Creates a new TextureBase instance from an image path
Image path
Generated using TypeDoc
Creates a DuckEngine Texture
The Texture Class. Stores images and colors in a class
2.0.0