color1 |
An instance of Color. |
color2 |
An instance of Color. |
direction |
|
steps |
The resolution of the gradient. Default value is 64. |
Retrieve the colour at position pos
, typically a value between zero and one. at(0)
is color1
, and at(1)
is color2
.
pos |