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