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.
Circle draws a filled disk by iterating every integer cell within the axis-aligned bounding square around the center (xc, yc) and placing a Point for each cell whose distance from the center satisfies dx² + dy² ≤ radius². This approach is simple and correct without trigonometry, producing fully filled circles rather than outlines. Because Point::draw() enforces the safe-margin bounds check, cells near the console edges are automatically skipped.
Header
Constructor
Column position of the circle’s center.
Row position of the circle’s center.
Radius in console cells. The bounding square scanned is
(xc - radius, yc - radius) to (xc + radius, yc + radius).A
ConsoleColor enum value applied to every filled cell (e.g. yellowF, blueF).Unicode code point written into each filled cell. Defaults to
0x2588 (█).Methods
| Method | Returns | Description |
|---|---|---|
draw() | void | Iterates the bounding square cell by cell and places a Point for each cell satisfying dx² + dy² ≤ radius². |
translate(float dx, float dy) | void | Shifts the center by dx/dy. Applied only when the entire circle (center ± radius) stays within console bounds. |
setCenterX(float) / getCenterX() | void / float | Circle center X. |
setCenterY(float) / getCenterY() | void / float | Circle center Y. |
setRadius(float) / getRadius() | void / float | Circle radius. |
setColor(short) / getColor() | void / float | Fill color attribute. |
setCharacter(short) / getCharacter() | void / float | Fill character code point. |
Example
Console cells are not square pixels — a typical console font is roughly twice as tall as it is wide. As a result, circles may appear horizontally stretched (elliptical) depending on the font aspect ratio. To compensate visually, reduce the effective X radius or choose a font with a 1:1 aspect ratio such as a square pixel font.