gewel.contrib.tvdraw.time_varying_drawable

gewel.contrib.tvdraw.time_varying_drawable(func: Callable) Callable[source]

A decorator that decorates a function that returns a Drawable and produces a function that takes a time-varying dictionary of class Tvd and used the values in it at the current time to produce a drawable.

This is intended for very advanced use cases where neither the normal mechanics of move_to() and similar functions nor motion linking (see Tracking With Motion Linking, Partial Motion Linking, and Advanced Motion Linking) are sufficient to create the desired effect. Note also that this approach is often much slower to render than those approaches.

Parameters

func – The function to be decorated.

Returns

  • A function that returns a drawable for the current

  • time.