Module flower.Image
Class to display a simple texture.
Extends:
Info:
- Release: V3.0.0
- Author: Makoto
Functions
Image:init (texture, width, height, flipX, flipY) | Constructor. |
Image:setSize (width, height) | Sets the size. |
Image:setTexture (texture) | Sets the texture. |
Image:setFlip (flipX, flipY) | Sets the texture flip. |
Functions
- Image:init (texture, width, height, flipX, flipY)
-
Constructor.
Parameters:
- texture Texture path, or texture.
- width (option) Width of image.
- height (option) Height of image.
- flipX (option)flipX
- flipY (option)flipY
- Image:setSize (width, height)
-
Sets the size.
Parameters:
- width Width of image.
- height Height of image.
- Image:setTexture (texture)
-
Sets the texture.
Parameters:
- texture Texture path, or texture
- Image:setFlip (flipX, flipY)
-
Sets the texture flip.
Parameters:
- flipX (option)flipX
- flipY (option)flipY