examples/test.rb in rubyonacid-0.1.1 vs examples/test.rb in rubyonacid-0.1.2
- old
+ new
@@ -78,13 +78,13 @@
@f.within(:alpha, 50, 255).to_i
),
@f.within(:width, 1, 5).to_i
)
surface.draw_line(
- @f.within(:x, 0, WIDTH).to_i,
- @f.within(:y, 0, HEIGHT).to_i,
- @f.within(:x2, 0, WIDTH).to_i,
- @f.within(:y2, 0, HEIGHT).to_i
+ @f.get(:x, :max => WIDTH).to_i,
+ @f.get(:y, :max => HEIGHT).to_i,
+ @f.get(:x2, :max => WIDTH).to_i,
+ @f.get(:y2, :max => HEIGHT).to_i
)
end
@f.reset_assignments if @resetter.boolean(:reset)
end
\ No newline at end of file