Skip to content

animation_color

Return the color of an animation tag as {r, g, b, a}, or nil.

Parameters

  • atlas — An atlas.
  • name — An animation name.
local color = animation_color(atlas, "walk")

Related: animation_frame.

See the animations guide for more examples and limits.