Skip to content

Commit

Permalink
docs: add keys mentioning to the docs
Browse files Browse the repository at this point in the history
  • Loading branch information
g0rdan committed Sep 30, 2024
1 parent cd80a1e commit 4dd5977
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion doc/flame/rendering/images.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ To synchronously retrieve a previously cached image, the `fromCache` method can
with that key was not previously loaded, it will throw an exception.

To add an already loaded image to the cache, the `add` method can be used and you can set the key
that the image should have in the cache.
that the image should have in the cache. You can retrieve all the keys in the cache using the `keys`
getter.

You can also use `ImageExtension.fromPixels()` to dynamically create an image during the game.

Expand Down

0 comments on commit 4dd5977

Please sign in to comment.