A linear color fade between an outside and an inside color.
NOTE: The use of HiliteGradient is not supported yet in Qt GUI. When HiliteGradient is used in place of Color, the average gradient color will be used instead.
HiliteGradient.new(color1, color2, direction: 'v', steps: 64, frac: 0.33)
Arguments:
color1 |
An instance of Color. |
color2 |
An instance of Color. |
direction |
\h or \v for horizontal and vertical respectively. Default value is \v .
|
steps |
The resolution of the gradient. Default value is 64. |
frac |
The center of the gradient. Default value is 0.33, i.e. off center toward the top on a vertical gradient. |
.at(pos)