Added configurable LED sample size

This commit is contained in:
SpoinkyNL committed 2019-12-19 23:18:09 +01:00
1 parent 2f8671045c
commit b1870e9e64
10 files changed
+132 -17

No files matched your search

+4
View File
@@ -118,6 +118,10 @@ namespace Artemis.Core.Models.Profile
return;
canvas.Save();
canvas.ClipPath(Path);
// Placeholder
if (LayerShape?.RenderPath != null)
canvas.DrawPath(LayerShape.RenderPath, new SKPaint(){Color = new SKColor(255,0,0)});
LayerBrush?.Render(canvas);
canvas.Restore();
}
@@ -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();