Class: Processing::Touch

Inherits:
Object
  • Object
show all
Defined in:
lib/processing/touch.rb

Overview

Touch object.

Instance Attribute Summary collapse

Instance Attribute Details

#idObject (readonly)

Identifier of each touch



10
11
12
# File 'lib/processing/touch.rb', line 10

def id
  @id
end

#xNumeric (readonly)

Horizontal position of touch

Returns:

  • (Numeric)

    position x



16
17
18
# File 'lib/processing/touch.rb', line 16

def x
  @x
end

#yNumeric (readonly)

Vertical position of touch

Returns:

  • (Numeric)

    position y



22
23
24
# File 'lib/processing/touch.rb', line 22

def y
  @y
end