Image:texture
Returns the texture to draw, if any.
Usage
image:texture()
Returns
| Name | Type | Description |
|---|---|---|
texture | nil | love.Texture | Texture to draw if any. |
Examples
local texture = crystal.assets.get("assets/ui/menu_background.png");
local image = crystal.Image:new(texture);
assert(image:texture() == texture);