Color brush - Added configurable gradient repeat

Color brush - Fixed gradient positioning in the clip render mode
Color brush - Added gradient tile modes in clip render mode
Layer properties - Allow disabling support of keyframes via the description decorator
This commit is contained in:
SpoinkyNL committed 2020-08-03 00:18:12 +02:00
1 parent aa7c914b92
commit b659be1f48
8 files changed
+86 -19

No files matched your search

@@ -27,9 +27,10 @@ namespace Artemis.Core.Plugins.LayerBrush.Abstract
internal override void InternalRender(SKCanvas canvas, SKImageInfo canvasInfo, SKPath path, SKPaint paint)
{
// This lil' snippet renders per LED, it's neater but doesn't support translations
// We don't want translations on this canvas because that'll displace the LEDs, translations are applied to the points of each LED instead
Layer.ExcludeCanvasFromTranslation(canvas, true);
// Apply a translated version of the shape as the clipping mask
var shapePath = new SKPath(Layer.LayerShape.Path);
Layer.IncludePathInTranslation(shapePath, true);
canvas.ClipPath(shapePath);