Class: RubySketch::Circle
Overview
Circle shape object.
Instance Method Summary collapse
-
#initialize(x, y, size) ⇒ Circle
constructor
Initialize circle object.
Methods inherited from Shape
#contact, #contact_end, #height, #sensor=, #sensor?, #width
Constructor Details
#initialize(x, y, size) ⇒ Circle
Initialize circle object.
107 108 109 |
# File 'lib/rubysketch/shape.rb', line 107 def initialize(x, y, size) super Reflex::EllipseShape.new(frame: [x, y, size, size]) end |