Class Trapezoid
A trapezoid
Inheritance
Inherited Members
Namespace
Syntax
public class Trapezoid : GraphicalCyclicWriter
Constructors
Trapezoid(int, int, int, int, int, bool, Color?)
Makes a new trapezoid
Declaration
public Trapezoid(int topWidth, int bottomWidth, int height, int left, int top, bool filled = false, Color? shapeColor = null)
Parameters
| Name | Type | Description |
|---|---|---|
| topWidth | int | Trapezoid top width |
| bottomWidth | int | Trapezoid bottom width |
| height | int | Trapezoid height |
| left | int | Zero-based left position of the terminal to write this trapezoid to |
| top | int | Zero-based top position of the terminal to write this trapezoid to |
| filled | bool | Whether to print this filled trapezoid or just the outline |
| shapeColor | Color | Shape color. Null equals the current foreground color. |
Properties
BottomWidth
Trapezoid bottom width
Property Value
int
Declaration
public int BottomWidth { get; }
Filled
Whether to print this filled trapezoid or just the outline
Property Value
bool
Declaration
public bool Filled { get; }
ShapeColor
Shape color
Property Value
Color
Declaration
public Color ShapeColor { get; }
TopWidth
Trapezoid top width
Property Value
int
Declaration
public int TopWidth { get; }
Methods
Render()
Renders a trapezoid
Returns
string
A rendered trapezoid using a string that you can print to the terminal using WriteRaw(string, params object[])
Declaration
public override string Render()