struct

Lime::Drawables::Rectangle

Inherits Struct < Value < Object

A drawable rectangle.

Constructors

new(x : Int32, y : Int32, width : Int32, height : Int32, type : Type = Default, color : Colorize::Color = Colorize::ColorANSI::Default)

Initializes a new Rectangle.

For specifying the type, you can use the top-level constants Default, Double and Round.

Source

Instance methods

color
Source
color=(color : Colorize::Color)
Source
draw

Inserts the rectangle into the buffer.

Source
height
Source
height=(height : Int32)
Source
type
Source
width
Source
width=(width : Int32)
Source
x=(x : Int32)
Source
y=(y : Int32)
Source

Nested types