Skip to content

Commit ad89ffe

Browse files
committed
fix docs
1 parent cd37451 commit ad89ffe

File tree

4 files changed

+12
-19
lines changed

4 files changed

+12
-19
lines changed

public/about.html

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -463,14 +463,14 @@ <h2><a id="drawing">Functions for Drawing</a></h2>
463463
// see: https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/stroke
464464
stroke(color: number, path?: Path2D): void
465465

466-
// Create (or clone) a Path2D instance
467-
// see: https://developer.mozilla.org/en-US/docs/Web/API/Path2D/Path2D
468-
path(arg?: Path2D | string): Path2D
469-
470-
// Create a clipping region
466+
// Create a clipping region based in a Path2D instance
471467
// see: https://github.com/litecanvas/game-engine/blob/main/samples/clip/clip.js
472468
// note: before call `clip()` you must save the context using `push()` and `pop()`
473-
clipcirc(path: Path2D)</code></pre>
469+
clip(path: Path2D)
470+
471+
// Create (or clone) a Path2D instance
472+
// see: https://developer.mozilla.org/en-US/docs/Web/API/Path2D/Path2D
473+
path(arg?: Path2D | string): Path2D</code></pre>
474474

475475
<h2><a id="sound">Functions for Sound</a></h2>
476476

0 commit comments

Comments
 (0)