Class Rectangle2D
- Namespace
- AstraEngine.Canvas2D
- Assembly
- AstraEngine.Canvas2D.dll
Represents a Rectangle that can be drawn in 2D space
public class Rectangle2D : Drawable
- Inheritance
-
Rectangle2D
- Inherited Members
Properties
Color
The color of this rectangle
public Color Color { get; set; }
Property Value
Height
The height of this rectangle
public double Height { get; set; }
Property Value
Width
The width of this rectangle
public double Width { get; set; }
Property Value
Methods
Draw(ICanvas2D)
Draws this rectangle using the specified renderer
public override void Draw(ICanvas2D renderer)
Parameters
rendererICanvas2D