mirror of
https://github.com/flame-engine/flame.git
synced 2025-11-01 10:38:17 +08:00
Adding a note about the changes on the docs
This commit is contained in:
committed by
Erick (CptBlackPixel)
parent
029a392fed
commit
4c51118347
@ -39,6 +39,8 @@ You must pass the size to the render method, and the image will be resized accor
|
||||
|
||||
The render method will do nothing while the sprite has not been loaded, so you don't need to worry. The image is cached in the `Images` class, so you can safely create many sprites with the same fileName.
|
||||
|
||||
All render methods from the Sprite class can receive a `Paint` instance on the optional named parameter `overridePaint` that parameter will override the current `Sprite` paint instance for that render call.
|
||||
|
||||
Sprites can also be used as widgets, to do so, just use `Flame.util.spriteAsWidget`
|
||||
|
||||
A complete example of using sprite as widegets can be found [here](examples/animation_widget).
|
||||
|
||||
Reference in New Issue
Block a user