* Create a linear gradient that can be used with Renderer#setColor. * @param {number} x0 - x-axis coordinate of the start point * @param {number} y0 - y-axis coordinate of the start point * @param {number} x1 - x-axis coordinate of the end point * @param {number} y1 - y-axis coordina
(x0, y0, x1, y1)
| 622 | * @returns {Gradient} a Gradient object |
| 623 | */ |
| 624 | createLinearGradient(x0, y0, x1, y1) { |
| 625 | return new Gradient("linear", [x0, y0, x1, y1]); |
| 626 | } |
| 627 | |
| 628 | /** |
| 629 | * Create a radial gradient that can be used with {@link Renderer#setColor}. |
no outgoing calls
no test coverage detected