Add blank lines according to PEP 8.
Make function iterate_frames a method, add tests for FrameSample.
Use gradient colors instead of random colors.