Class Line
Line renderable
Inheritance
object
Line
Implements
Namespace: Terminaux.Writer.CyclicWriters
Assembly: Terminaux.dll
Syntax
public class Line : IStaticRenderable
Constructors
| Edit this page View SourceLine()
Makes a new instance of the line renderer
Declaration
public Line()
Properties
| Edit this page View SourceAntiAlias
Whether to enable anti-aliasing
Declaration
public bool AntiAlias { get; set; }
Property Value
Type | Description |
---|---|
bool |
Remarks
When this option is enabled, the line will be rendered using Xiaolin Wu's line algorithm. Else, the renderer uses Bresenham's line algorithm.
Color
Line color
Declaration
public Color Color { get; set; }
Property Value
Type | Description |
---|---|
Color |
EndPos
Ending position
Declaration
public Coordinate EndPos { get; set; }
Property Value
Type | Description |
---|---|
Coordinate |
StartPos
Starting position
Declaration
public Coordinate StartPos { get; set; }
Property Value
Type | Description |
---|---|
Coordinate |
Methods
| Edit this page View SourceRender()
Renders a line
Declaration
public string Render()
Returns
Type | Description |
---|---|
string | Rendered line that will be used by the renderer |