Class: MG::Parallax

Inherits:
Node
  • Object
show all
Defined in:
doc/API_reference.rb

Instance Attribute Summary

Attributes inherited from Node

#alpha, #anchor_point, #color, #name, #position, #rotation, #scale, #size, #visible?, #z_index

Container collapse

Methods inherited from Node

#children, #clear, #delete, #delete_from_parent, #intersects?, #parent, #run_action, #stop_action, #stop_all_actions

Instance Method Details

#add(node, zpos, parallax_ratio, position_offset) ⇒ Node

Adds the given Node object to the receiver and configure it in the parallax view.

Parameters:

  • node (Node)

    the node to add to the receiver.

  • zpos (Integer)

    the local z-order.

  • parallax_ratio (Point)
  • position_offset (Point)

Returns:

  • (Node)

    the child node.



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

def add(node, zpos, parallax_ratio, position_offset); end