Class: RatatuiRuby::Widgets::Shape::Circle

Inherits:
Object
  • Object
show all
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

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