examples/rinda_agent.rb in rubyonacid-0.3.0 vs examples/rinda_agent.rb in rubyonacid-0.3.1
- old
+ new
@@ -52,31 +52,31 @@
:circle,
:spline
)
when :line
surface.draw_line(
- @f.get(:x0, :max => WIDTH).to_i,
- @f.get(:y0, :max => HEIGHT).to_i,
+ @f.get(:x, :max => WIDTH).to_i,
+ @f.get(:y, :max => HEIGHT).to_i,
@f.get(:x1, :max => WIDTH).to_i,
@f.get(:y1, :max => HEIGHT).to_i
)
when :rectangle
surface.draw_rectangle(
- @f.get(:x0, :max => WIDTH).to_i,
- @f.get(:y0, :max => HEIGHT).to_i,
+ @f.get(:x, :max => WIDTH).to_i,
+ @f.get(:y, :max => HEIGHT).to_i,
@f.get(:x1, :max => WIDTH).to_i,
@f.get(:y1, :max => HEIGHT).to_i
)
when :circle
surface.draw_circle(
- @f.get(:x0, :max => WIDTH).to_i,
- @f.get(:y0, :max => HEIGHT).to_i,
+ @f.get(:x, :max => WIDTH).to_i,
+ @f.get(:y, :max => HEIGHT).to_i,
@f.get(:width, :max => WIDTH).to_i
)
when :arc
surface.draw_elliptic_arc(
- @f.get(:x0, :max => WIDTH).to_i,
- @f.get(:y0, :max => HEIGHT).to_i,
+ @f.get(:x, :max => WIDTH).to_i,
+ @f.get(:y, :max => HEIGHT).to_i,
@f.get(:width, :max => WIDTH).to_i,
@f.get(:height, :max => HEIGHT).to_i,
@f.get(:arc_start, :max => 360).to_i,
@f.get(:arc_end, :max => 360).to_i
)