Texture
Constructor
Texture <id> (string path)
Action
Defines a new texture from the picture atpath
that will be applied to fill the next shapes.
Predefined children
- TextProperty:
path
.
Example
use core
use display
use gui
_main_
Component root {
Frame f ("myFrame", 0, 0, 400, 400)
Texture t ("texture.png")
Rectangle r (10, 10, 150, 80, 5, 5)
}