class RatatuiRuby::Widgets::Shape::Circle
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.
Attributes
Color.
Radius (Float, duck-typed via to_f).
Public Class Methods
Source
# 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