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, #contactEnd, #contact_end, #height, #sensor=, #sensor?, #width
Constructor Details
#initialize(x, y, size) ⇒ Circle
Initialize circle object.
113 114 115 |
# File 'lib/rubysketch/shape.rb', line 113 def initialize(x, y, size) super Reflex::EllipseShape.new(frame: [x, y, size, size]) end |