class RatatuiRuby::Widgets::Shape::Point
A point in the canvas coordinate system.
- x
-
The x-coordinate.
- y
-
The y-coordinate.
Attributes
X coordinate (Float, duck-typed via to_f).
Y coordinate (Float, duck-typed via to_f).
Public Class Methods
Source
# File lib/ratatui_ruby/widgets/canvas.rb, line 30 def initialize(x:, y:) super(x: Float(x), y: Float(y)) end