Class: MG::FadeTo

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(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.



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

def initialize(opacity, interval); end