GradientStopCollection
Contents
[
Hide
]GradientStopCollection class
Represents the gradient stop collection.
Methods
| Name | Description |
|---|---|
| add(position, color, alpha) | Add a gradient stop. |
| clear() | |
| get(index) | Gets the gradient stop by the index. |
| getCount() | |
| iterator() | Reserved for internal use. |
| removeAt() | |
| set(index) | Gets the gradient stop by the index. |
add(position, color, alpha)
Add a gradient stop.
| Parameter | Type | Description |
|---|---|---|
| position | DoubleValue | The position of the stop,in unit of percentage. |
| color | ColorValue | The color of the stop. |
| alpha | The alpha of the color. |
clear()
get(index)
Gets the gradient stop by the index.
| Parameter | Type | Description |
|---|---|---|
| index | Number | The index. |
Returns: GradientStop — GradientStop The gradient stop.
getCount()
iterator()
Reserved for internal use.
removeAt()
set(index)
Gets the gradient stop by the index.
| Parameter | Type | Description |
|---|---|---|
| index | Number | The index. |
Returns: GradientStop — GradientStop The gradient stop.