Core - Added ColorGradient type to use for.. gradients!

Core - Initialisation process no longer takes place in core constructor and is no longer async
UI - Fixed exceptions during init not being shown
Gradient editor - Started work on this
This commit is contained in:
Robert committed 2020-02-28 13:03:30 +01:00
1 parent 2bcee30e11
commit 15bac30362
29 files changed
+1517 -113

No files matched your search

@@ -0,0 +1,28 @@
using System.Collections.Generic;
using SkiaSharp;
namespace Artemis.Core.Models.Profile
{
public class ColorGradient
{
public ColorGradient()
{
Colors = new List<ColorGradientColor>();
}
public List<ColorGradientColor> Colors { get; }
public float Rotation { get; set; }
}
public struct ColorGradientColor
{
public ColorGradientColor(SKColor color, float position)
{
Color = color;
Position = position;
}
public SKColor Color { get; set; }
public float Position { get; set; }
}
}