Class: MG::FadeTo

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

Constructors collapse

Methods inherited from Action

#clone, #done?, #reverse

Constructor Details

#initialize(opacity, interval) ⇒ FadeTo

Creates an action Fades the receiver. It modifies the opacity from the current opacity to a custom one.

Parameters:

  • opacity (Integer)

    the opacity to fade the object to (between 0-255)

  • interval (Float)

    the animation interval.



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

def initialize(opacity, interval); end