AngleSharp by AngleSharp

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

 LinearGradient

public sealed class LinearGradient : IGradient, IImageSource
Represents a linear gradient: http://dev.w3.org/csswg/css-images-3/#linear-gradients
using System.Collections.Generic; using System.Linq; namespace AngleSharp.Css.Values { public sealed class LinearGradient : IGradient, IImageSource { private readonly GradientStop[] _stops; private readonly Angle _angle; private readonly bool _repeating; public Angle Angle => _angle; public IEnumerable<GradientStop> Stops => _stops.AsEnumerable(); public bool IsRepeating => _repeating; public LinearGradient(Angle angle, GradientStop[] stops, bool repeating = false) { _stops = stops; _angle = angle; _repeating = repeating; } } }