struct

Lime::Drawables::FilledRectangle

Inherits Struct < Value < Object

A drawable filled rectangle.

Constructors

new(x : Int32, y : Int32, width : Int32, height : Int32, material : String = "█", color : Colorize::Color = Colorize::ColorANSI::Default)

Initializes a new FilledRectangle.

material is what the filled rectangle will be built with:

FilledRectangle.new(0, 0, 5, 5, "#").draw
#####
#####
#####
#####
#####
```
Source

Instance methods

color
Source
draw

Inserts the filled rectangle into the buffer.

Source
height
Source
height=(height : Int32)
Source
material
Source
material=(material : String)
Source
width
Source
width=(width : Int32)
Source
x=(x : Int32)
Source
y=(y : Int32)
Source