Class ColorRamp
public class ColorRamp : IEnumerable<ColorStop>, IEnumerable
- Inheritance
-
ColorRamp
- Implements
- Inherited Members
Constructors
ColorRamp(IEnumerable<ColorStop>?)
public ColorRamp(IEnumerable<ColorStop>? stops = null)
Parameters
stops
IEnumerable<ColorStop>
Properties
Count
public int Count { get; }
Property Value
this[int]
public ColorStop this[int index] { get; set; }
Parameters
index
int
Property Value
Methods
AddStop(ColorStop)
public void AddStop(ColorStop stop)
Parameters
stop
ColorStop
AddStop(float, Vector4)
public void AddStop(float position, Vector4 color)
Parameters
GetEnumerator()
Returns an enumerator that iterates through the collection.
public IEnumerator<ColorStop> GetEnumerator()
Returns
- IEnumerator<ColorStop>
An enumerator that can be used to iterate through the collection.
RemoveStop(int)
public void RemoveStop(int index)
Parameters
index
int