AngleSharp by AngleSharp

<PackageReference Include="AngleSharp" Version="0.9.8.1" />

 RadialGradient

public sealed class RadialGradient : IImageSource
Represents a radial gradient: http://dev.w3.org/csswg/css-images-3/#radial-gradients
using System.Collections.Generic; using System.Linq; namespace AngleSharp.Css.Values { public sealed class RadialGradient : IImageSource { public enum SizeMode : byte { None, ClosestCorner, ClosestSide, FarthestCorner, FarthestSide } private readonly GradientStop[] _stops; private readonly Point _pt; private readonly Length _width; private readonly Length _height; private readonly bool _repeating; private readonly bool _circle; private readonly SizeMode _sizeMode; public bool IsCircle => _circle; public SizeMode Mode => _sizeMode; public Point Position => _pt; public Length MajorRadius => _width; public Length MinorRadius => _height; public IEnumerable<GradientStop> Stops => _stops.AsEnumerable(); public bool IsRepeating => _repeating; public RadialGradient(bool circle, Point pt, Length width, Length height, SizeMode sizeMode, GradientStop[] stops, bool repeating = false) { _stops = stops; _pt = pt; _width = width; _height = height; _repeating = repeating; _circle = circle; _sizeMode = sizeMode; } } }