|
1 | 1 | # Skia Canvas |
2 | 2 |
|
3 | 3 | [](https://github.com/DjDeveloperr/skia_canvas/releases) |
4 | | -[](https://doc.deno.land/https/deno.land/x/skia_canvas@0.1.1/mod.ts) |
| 4 | +[](https://doc.deno.land/https/deno.land/x/skia_canvas@0.2.0/mod.ts) |
5 | 5 | [](https://github.com/DjDeveloperr/skia_canvas/actions/workflows/ci.yml) |
6 | 6 | [](https://github.com/DjDeveloperr/skia_canvas/blob/master/LICENSE) |
7 | 7 | [](https://github.com/sponsors/DjDeveloperr) |
8 | 8 |
|
9 | | -Fast JavaScript Canvas using Skia |
| 9 | +Fast HTML Canvas API implementation for Deno using Skia. |
10 | 10 |
|
11 | 11 | ## Example |
12 | 12 |
|
13 | 13 | ```ts |
14 | | -import { createCanvas } from "https://deno.land/x/skia_canvas@0.1.1/mod.ts"; |
| 14 | +import { createCanvas } from "https://deno.land/x/skia_canvas@0.2.0/mod.ts"; |
15 | 15 |
|
16 | 16 | const canvas = createCanvas(300, 300); |
17 | 17 | const ctx = canvas.getContext("2d"); |
@@ -51,13 +51,23 @@ deno run -A --unstable <file> |
51 | 51 | ## API |
52 | 52 |
|
53 | 53 | Check the |
54 | | -[API reference here](https://doc.deno.land/https/deno.land/x/skia_canvas@0.1.1/mod.ts). |
| 54 | +[API reference here](https://doc.deno.land/https/deno.land/x/skia_canvas@0.2.0/mod.ts). |
55 | 55 |
|
56 | 56 | Since this module implements the Canvas Web API, you can also refer to the |
57 | 57 | [MDN docs](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D). |
58 | 58 |
|
59 | | -For non-standard APIs (such as `Canvas#save`, `Image.load`, `Fonts.*`), refer to |
60 | | -the API docs mentioned above. |
| 59 | +For non-standard APIs, refer to the API docs mentioned above. |
| 60 | + |
| 61 | +### Non-standard APIs |
| 62 | + |
| 63 | +For non-standard APIs, refer to the API docs mentioned above. |
| 64 | + |
| 65 | +- `Canvas#save` - save canvas render as file |
| 66 | +- `Canvas#encode` - encode render into in-memory buffer |
| 67 | +- `Image` - provides utility to load image files for drawing on canvas |
| 68 | +- `Fonts` - provides utility to manage fonts used by Skia |
| 69 | +- `PdfDocument` - create PDF documents using 2D Canvas API |
| 70 | +- `SvgCanvas` - like `Canvas` but creates an SVG as output instead |
61 | 71 |
|
62 | 72 | ## Building |
63 | 73 |
|
|
0 commit comments