A virtual method for the PaintFuncs to paint a linear gradient everywhere within the current clip.
The color_line object contains information about the colors of the gradients. It is only valid for the duration of the
callback, you cannot keep it around.
The coordinates of the points are interpreted according to the current transform.
See the OpenType spec COLR section for
details on how the points define the direction of the gradient, and how to interpret the color_line.
| funcs |
paint functions object |
| paint_data |
The data accompanying the paint functions in paint_glyph |
| color_line |
Color information for the gradient |
| x0 |
X coordinate of the first point |
| y0 |
Y coordinate of the first point |
| x1 |
X coordinate of the second point |
| y1 |
Y coordinate of the second point |
| x2 |
X coordinate of the third point |
| y2 |
Y coordinate of the third point |
| user_data |
User data pointer passed to set_linear_gradient_func |