AngleSharp by AngleSharp

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

 LinearGradient

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 { internal sealed class LinearGradient : IGradient, IImageSource { private readonly GradientStop[] _stops; private readonly float _angle; private readonly bool _repeating; public float Angle => _angle; public IEnumerable<GradientStop> Stops => _stops.AsEnumerable(); public bool IsRepeating => _repeating; public LinearGradient(float angle, GradientStop[] stops, bool repeating = false) { _stops = stops; _angle = angle; _repeating = repeating; } } }