mirror of
https://github.com/Artemis-RGB/Artemis
synced 2026-11-12 11:56:30 +00:00
18 lines
416 B
C#
18 lines
416 B
C#
using SkiaSharp;
|
|
|
|
namespace Artemis.Core.Models.Profile.LayerShapes
|
|
{
|
|
public class Ellipse : LayerShape
|
|
{
|
|
public Ellipse(Layer layer) : base(layer)
|
|
{
|
|
}
|
|
|
|
public override void CalculateRenderProperties()
|
|
{
|
|
var path = new SKPath();
|
|
path.AddOval(SKRect.Create(Layer.Bounds.Width, Layer.Bounds.Height));
|
|
Path = path;
|
|
}
|
|
}
|
|
} |