Class: RatatuiRuby::Widgets::Shape::Circle
- Inherits:
-
Object
- Object
- RatatuiRuby::Widgets::Shape::Circle
- Defined in:
- lib/ratatui_ruby/widgets/canvas.rb
Overview
A circle shape on a canvas.
- x
-
The x-coordinate of the center.
- y
-
The y-coordinate of the center.
- radius
-
The radius of the circle.
- color
-
The color of the circle.
Instance Method Summary collapse
-
#initialize(x:, y:, radius:, color:) ⇒ Circle
constructor
Creates a new Circle.
Constructor Details
#initialize(x:, y:, radius:, color:) ⇒ Circle
Creates a new Circle.
- x
-
Center X (Numeric).
- y
-
Center Y (Numeric).
- radius
-
Radius (Numeric).
- color
-
Color (Symbol).
144 145 146 |
# File 'lib/ratatui_ruby/widgets/canvas.rb', line 144 def initialize(x:, y:, radius:, color:) super(x: Float(x), y: Float(y), radius: Float(radius), color:) end |