ACTIONS & ANIMATIONS
The Wave class creates an action that provides a waves effect to the matrix in which it is applied.
Creates a Wave instance:
waves_action = Wave.with grid_size:[100, 200] background_layer.run_action waves_action
waves: - Integer - Default: 1
Sets the number of waves the action will have.
amplitude: - Float - Default: 10.0
Sets the amplitude of the waves.
horizontal: - Boolean - Default: true
Enables the effect on the horizontal axis.
vertical: - Boolean - Default: true
Enables the effect on the vertical axis.
duration: - Float - Default: 0.3
Sets the total duration time of the action.