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