pg.evolution.Scalar#

Accessible via pg.evolution.Scalar, pg.scalars.Scalar.

class Scalar[source]#

Bases: pg.Object

Interface for step-based scalar.

Methods:

call(step)

Implementation.

ceil()

Returns the ceiling of current scalar.

floor()

Returns the floor of current scalar.

abstract call(step)[source]#

Implementation. Subclass should override this method.

Return type:

Any

ceil()[source]#

Returns the ceiling of current scalar.

floor()[source]#

Returns the floor of current scalar.