20 lines
489 B
C#
Executable File
20 lines
489 B
C#
Executable File
using System.Drawing;
|
|
|
|
using DaggerFramework.Rendering;
|
|
|
|
namespace DaggerFramework
|
|
{
|
|
public class CircleShape2d : Drawable2d
|
|
{
|
|
public float Radius { get => _radius; set => _radius = value; }
|
|
public Color Color { get => _color; set => _color = value; }
|
|
|
|
public override void OnDraw(in Renderer renderer)
|
|
{
|
|
renderer.DrawCircle(_radius, _color);
|
|
}
|
|
|
|
private float _radius;
|
|
private System.Drawing.Color _color;
|
|
}
|
|
} |