LibWeb: Add CanvasRenderingContext2D.clearRect()

Similar to fillRect, except this API fills with transparent black.
This commit is contained in:
Andreas Kling 2021-03-15 19:40:42 +01:00
commit d434ae71b3
Notes: sideshowbarker 2024-07-18 21:19:41 +09:00
3 changed files with 13 additions and 0 deletions

View file

@ -2,6 +2,7 @@ interface CanvasRenderingContext2D {
undefined fillRect(double x, double y, double w, double h);
undefined strokeRect(double x, double y, double w, double h);
undefined clearRect(double x, double y, double w, double h);
undefined scale(double x, double y);
undefined translate(double x, double y);