1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 02:07:36 +00:00

LibWeb: Implement the CanvasRenderingContext2D::rect path method

This method adds a rectangle to the current 2D path.
This commit is contained in:
Idan Horowitz 2021-04-14 23:29:14 +03:00 committed by Andreas Kling
parent 4c0937225e
commit aab99d5945
5 changed files with 46 additions and 0 deletions

View file

@ -15,6 +15,7 @@ interface CanvasRenderingContext2D {
undefined moveTo(double x, double y);
undefined lineTo(double x, double y);
undefined quadraticCurveTo(double cpx, double cpy, double x, double y);
undefined rect(double x, double y, double width, double height);
undefined drawImage(HTMLImageElement image, double dx, double dy);