struct Lime::Drawables::FilledRectangle

Overview

A drawable filled rectangle.

Defined in:

lime/drawables.cr

Constructors

Instance Method Summary

Constructor Detail

def self.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
#####
#####
#####
#####
#####
```

[View source]

Instance Method Detail

def color : Colorize::Color256 | Colorize::ColorANSI | Colorize::ColorRGB #

[View source]
def draw #

Inserts the filled rectangle into the buffer.


[View source]
def height : Int32 #

[View source]
def height=(height : Int32) #

[View source]
def material : String #

[View source]
def material=(material : String) #

[View source]
def width : Int32 #

[View source]
def width=(width : Int32) #

[View source]
def x : Int32 #

[View source]
def x=(x : Int32) #

[View source]
def y : Int32 #

[View source]
def y=(y : Int32) #

[View source]