coldtype.time.Timeable¶
-
class
Timeable(start, end, index=0, name=None, data={})¶ Abstract base class for anything with a concept of start and end/duration
Implements additional methods to make it easier to work with time-based concepts
-
io(fi, length, ei='eei', eo='eei', negative=False)¶ Somewhat like
progress(), but can be used to fade in/out (hence the name (i)n/(o)ut)lengthrefers to the lenght of the ease, in framesei=takes the ease-in mnemoniceo=takes the ease-out mnemonic
-
progress(i, loops=0, cyclic=True, negative=False, easefn='linear', to1=False) → coldtype.time.timeable.Timing¶ Given an easing function (
easefn=), calculate the amount of progress as a Timing objecteasefn=takes a mnemonic as enumerated incoldtype.time.easing.ease()
-