mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 13:57:35 +00:00
LibWeb: Update CRC2D .fillStyle and .strokeStyle to accept gradients
While doing add some structures to hold these new fill styles and plumb them over to the painter.
This commit is contained in:
parent
2be4142138
commit
24cb57ac88
5 changed files with 89 additions and 17 deletions
|
@ -3,9 +3,9 @@
|
|||
// https://html.spec.whatwg.org/multipage/canvas.html#canvasfillstrokestyles
|
||||
interface mixin CanvasFillStrokeStyles {
|
||||
// FIXME: Should be `(DOMString or CanvasGradient or CanvasPattern)`
|
||||
attribute DOMString strokeStyle;
|
||||
attribute (DOMString or CanvasGradient) strokeStyle;
|
||||
// FIXME: Should be `(DOMString or CanvasGradient or CanvasPattern)`
|
||||
attribute DOMString fillStyle;
|
||||
attribute (DOMString or CanvasGradient) fillStyle;
|
||||
CanvasGradient createLinearGradient(double x0, double y0, double x1, double y1);
|
||||
CanvasGradient createRadialGradient(double x0, double y0, double r0, double x1, double y1, double r1);
|
||||
CanvasGradient createConicGradient(double startAngle, double x, double y);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue