Encode an animation to the PNG format.
List<int>? encodePngAnimation(Animation anim, {int level = 6}) => PngEncoder(level: level).encodeAnimation(anim);