Table of Contents

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

Color

Height

The height of this rectangle

public double Height { get; set; }

Property Value

double

Width

The width of this rectangle

public double Width { get; set; }

Property Value

double

Methods

Draw(ICanvas2D)

Draws this rectangle using the specified renderer

public override void Draw(ICanvas2D renderer)

Parameters

renderer ICanvas2D