Class: MG::RotateTo

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

Constructors collapse

Methods inherited from Action

#clone, #done?, #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.



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

def initialize(angle, interval); end