Documentation Index
Fetch the complete documentation index at: https://mintlify.com/adi3120/Fazen2d/llms.txt
Use this file to discover all available pages before exploring further.
Box draws a solid filled rectangle by iterating over the region from (x, y) to (x + width, y + height) and placing a Point at every position inside it. The inner loop steps in increments of 0.1 along both axes so that the rectangle is fully dense regardless of floating-point origins, delegating the actual buffer write and safe-margin check to Point::draw() at each step.
Header
Constructor
Column of the top-left corner of the rectangle.
Row of the top-left corner of the rectangle.
Horizontal extent in console columns. The filled region spans columns
x through x + width inclusive.Vertical extent in console rows. The filled region spans rows
y through y + height inclusive.A
ConsoleColor enum value applied uniformly to every cell in the rectangle (e.g. greyF, blueF).Unicode code point written into every cell. Defaults to
0x2588 (█) for a solid fill. Supply a different code point for textured or patterned boxes.Methods
| Method | Returns | Description |
|---|---|---|
draw() | void | Fills the width × height region by iterating in 0.1-unit steps and placing a Point at each position in the back-buffer. |
translate(float dx, float dy) | void | Moves the box origin by dx/dy. Applies the offset only if the entire box (origin plus dimensions) remains within console bounds. |
setPosX(float) / getPosX() | void / float | Top-left corner X. |
setPosY(float) / getPosY() | void / float | Top-left corner Y. |
setWidth(float) / getWidth() | void / float | Rectangle width in columns. |
setHeight(float) / getHeight() | void / float | Rectangle height in rows. |
setColor(short) / getColor() | void / float | Fill color attribute. |
setCharacter(short) / getCharacter() | void / float | Fill character code point. |