Grease system abstract base class. Systems define behaviorial aspects of a World. All systems must define a step() method that is invoked by the world each timestep. User-defined systems are not required to subclass this class.
See an example system from the tutorial.
Execute a time step for the system. Must be defined by all system classes.
Parameter: | dt (float) – Time since last step invocation |
---|
Grease renderer abstract base class. Renderers define the presentation of a World. All renderers must define a draw() method that is invoked by the world when the display needs to be redrawn. User-defined renderers are not required to subclass this class.
See an example renderer from the tutorial.