Ask Your Question

Revision history [back]

The animate command will animate any sequence of plots. So choose the plots you want to display, in order, and plug that into animate. For example,

import itertools
KULAYS=['dodgerblue', 'mediumseagreen', 'gold', 'orangered']
[list(L) for L in itertools.permutations(KULAYS)]

will return the permutations of the colors in KULAYS in some order, and so

animate((ModularColor(list(L)) for L in itertools.permutations(KULAYS)))

will produce an animation with one "frame" for each different permutation.

If you want a different kind of animation, choose a different sequence of pictures for animate. See also the documentation.