pixelbuf_pi_animation.parser.JsonAnimationParser (AnimationParser)

Defines how to read Animations to/from JSON.

read(file_input) staticmethod

Given some sort of file input, this method will read that file and return an Animation object. :param file_input: :return: an Animation object

write(writable_file, animation) staticmethod

Given a writable file and an animation, this method will write the given animation into that file. This method does not handle file cleanup or closing. :param writable_file: :param animation: :return: