Skip to content
Browse files

html.canvas

  • Loading branch information...
1 parent 625b205 commit 691a86f9e64ccd1b3ade49b61c0366d1237780e9 @tj committed
Showing with 19 additions and 2 deletions.
  1. +19 −2 html.canvas.md
View
21 html.canvas.md
@@ -44,11 +44,28 @@
## .fillStyle = value
- Set fill style to `value`, a CSS color string, `CanvasGradient`, or `CanvasPattern`.
+ Set fill style to `value`, a CSS color string,
+ `CanvasGradient`, or `CanvasPattern`.
## .strokeStyle = value
- Set fill style to `value`, a CSS color string, `CanvasGradient`, or `CanvasPattern`.
+ Set fill style to `value`, a CSS color string,
+ `CanvasGradient`, or `CanvasPattern`.
+
+## clearRect(x, y, w, h)
+
+ Clears all pixels on the canvas in the given
+ rectangle to transparent black.
+
+## fillRect(x, y, w, h)
+
+ Paints the given rectangle onto the canvas,
+ using the current fill style.
+
+## strokeRect(x, y, w, h)
+
+ Paints the box that outlines the given rectangle onto the canvas,
+ using the current stroke style.
## .createLinearGradient(x0, y0, x1, y1)

0 comments on commit 691a86f

Please sign in to comment.
Something went wrong with that request. Please try again.