aboutsummaryrefslogtreecommitdiffstatsci
path: root/Backends/SkiaBackend/src/Extensions.cs
blob: 2b27d31e4e734cd6260941b8af3f810e134dd675 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// Copyright (c) 2018-2021  Jean-Philippe Bruyère <jp_bruyere@hotmail.com>
//
// This code is licensed under the MIT license (MIT) (http://opensource.org/licenses/MIT)


using Drawing2D;
using SkiaSharp;

namespace Crow.SkiaBackend
{
	internal static class Extensions {
		internal static SKColor ToSkiaColor (this Color c)
			=> new Color (c.A, c.R, c.G, c.B).Value;
	}
}