mirror of
https://github.com/Artemis-RGB/Artemis
synced 2026-11-12 11:56:30 +00:00
Added configurable LED sample size
This commit is contained in:
1 parent
04bc8f013a
commit
eb963eb409
10 files changed
+132
-17
No files matched your search
@@ -21,6 +21,7 @@ namespace Artemis.Core.Models.Profile.LayerShapes
|
||||
|
||||
var path = new SKPath();
|
||||
path.AddOval(rect);
|
||||
path.Transform(SKMatrix.MakeTranslation(Layer.Rectangle.Left, Layer.Rectangle.Top));
|
||||
|
||||
RenderPath = path;
|
||||
RenderRectangle = path.GetRect();
|
||||
|
||||
@@ -20,6 +20,7 @@ namespace Artemis.Core.Models.Profile.LayerShapes
|
||||
var rect = SKRect.Create(Position.X * width, Position.Y * height, Size.Width * width, Size.Height * height);
|
||||
var path = new SKPath();
|
||||
path.AddRect(rect);
|
||||
path.Transform(SKMatrix.MakeTranslation(Layer.Rectangle.Left, Layer.Rectangle.Top));
|
||||
|
||||
RenderPath = path;
|
||||
RenderRectangle = path.GetRect();
|
||||
|
||||
Reference in new issue
Block a user