Class ColorGradient
- Namespace
- Lime
- Assembly
- Lime.dll
public class ColorGradient : List<GradientControlPoint>, IList<GradientControlPoint>, ICollection<GradientControlPoint>, IReadOnlyList<GradientControlPoint>, IReadOnlyCollection<GradientControlPoint>, IEnumerable<GradientControlPoint>, IList, ICollection, IEnumerable, IComparer<GradientControlPoint>
- Inheritance
-
ColorGradient
- Implements
- Inherited Members
- Extension Methods
Constructors
ColorGradient()
public ColorGradient()
ColorGradient(Color4)
public ColorGradient(Color4 a)
Parameters
a
Color4
ColorGradient(Color4, Color4)
public ColorGradient(Color4 a, Color4 b)
Parameters
Methods
CalculateHashCode()
public long CalculateHashCode()
Returns
Clone()
public ColorGradient Clone()
Returns
Compare(GradientControlPoint, GradientControlPoint)
Compares two objects and returns a value indicating whether one is less than, equal to, or greater than the other.
public int Compare(GradientControlPoint x, GradientControlPoint y)
Parameters
x
GradientControlPointThe first object to compare.
y
GradientControlPointThe second object to compare.
Returns
- int
A signed integer that indicates the relative values of
x
andy
, as shown in the following table.Value Meaning Less than zero x
is less thany
.Zero x
equalsy
.Greater than zero x
is greater thany
.
GetHashCode()
Serves as the default hash function.
public override int GetHashCode()
Returns
- int
A hash code for the current object.
GetNearestPointTo(float)
public GradientControlPoint GetNearestPointTo(float position)
Parameters
position
float
Returns
Ordered()
public IEnumerable<GradientControlPoint> Ordered()
Returns
Rasterize(ref Color4[])
public void Rasterize(ref Color4[] pixels)
Parameters
pixels
Color4[]