Skip to content

sprite_info

Return a table with the metadata of one sprite.

Parameters

  • atlas — An atlas.
  • id — A sprite id.
local info = sprite_info(atlas, 10)
print(info.name, info.width)

Related: sprite_id.

See the images guide for more examples and limits.