summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/HTML/Canvas/CanvasFillStrokeStyles.idl
blob: 45b393c7cf646bba0bd8e9b0a784c187fd4da505 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#import <HTML/CanvasGradient.idl>

// https://html.spec.whatwg.org/multipage/canvas.html#canvasfillstrokestyles
interface mixin CanvasFillStrokeStyles {
    // FIXME: Should be `(DOMString or CanvasGradient or CanvasPattern)`
    attribute DOMString strokeStyle;
    // FIXME: Should be `(DOMString or CanvasGradient or CanvasPattern)`
    attribute DOMString 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);
    // FIXME: CanvasPattern? createPattern(CanvasImageSource image, [LegacyNullToEmptyString] DOMString repetition);
};