class Kame::Remocon::Opal::Turtle::Pos
Attributes
x[R]
y[R]
Public Class Methods
new(x, y)
click to toggle source
# File lib/kame/remocon/opal/turtle.rb, line 12 def initialize(x, y) @x = x @y = y end
Public Instance Methods
canvas_coordinate()
click to toggle source
# File lib/kame/remocon/opal/turtle.rb, line 22 def canvas_coordinate [@x + 200, @y + 200] end
move_to(x, y)
click to toggle source
# File lib/kame/remocon/opal/turtle.rb, line 17 def move_to(x, y) @x = x @y = y end