encodePngAnimation function

List<int> encodePngAnimation (
  1. Animation anim,
  2. {int level: 6}
)

Encode an animation to the PNG format.

Implementation

List<int> encodePngAnimation(Animation anim, {int level = 6}) {
  return PngEncoder(level: level).encodeAnimation(anim);
}