Class: MG::RotateTo

Inherits:
Action show all
Defined in:
doc/API_reference.rb

Instance Attribute Summary

Attributes inherited from Action

#done?

Constructors collapse

Methods inherited from Action

#clone, #reverse

Constructor Details

#initialize(angle, interval) ⇒ RotateTo

Creates an action that will rotate the angle of the receiver to a new angle by modifying it’s rotation attribute.

Parameters:

  • angle (Float)

    the receiver should be rotated to.

  • interval (Float)

    the animation interval.



111
# File 'doc/API_reference.rb', line 111

def initialize(angle, interval); end