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
{
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;
}
}
}