struct Lime::Drawables::FilledRectangle
- Lime::Drawables::FilledRectangle
- Struct
- Value
- Object
Overview
A drawable filled rectangle.
Defined in:
lime/drawables.crConstructors
-
.new(x : Int32, y : Int32, width : Int32, height : Int32, material : String = "█", color : Colorize::Color = Colorize::ColorANSI::Default)
Initializes a new
FilledRectangle
.
Instance Method Summary
- #color : Colorize::Color256 | Colorize::ColorANSI | Colorize::ColorRGB
-
#draw
Inserts the filled rectangle into the buffer.
- #height : Int32
- #height=(height : Int32)
- #material : String
- #material=(material : String)
- #width : Int32
- #width=(width : Int32)
- #x : Int32
- #x=(x : Int32)
- #y : Int32
- #y=(y : Int32)
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
#####
#####
#####
#####
#####
```