11# Skia Canvas
22
33[ ![ Tags] ( https://img.shields.io/github/release/DjDeveloperr/skia_canvas )] ( https://github.com/DjDeveloperr/skia_canvas/releases )
4- [ ![ Doc] ( https://doc.deno.land/badge.svg )] ( https://doc.deno.land/https/deno.land/x/skia_canvas@0.5.5 /mod.ts )
4+ [ ![ Doc] ( https://doc.deno.land/badge.svg )] ( https://doc.deno.land/https/deno.land/x/skia_canvas@0.5.6 /mod.ts )
55[ ![ Checks] ( https://github.com/DjDeveloperr/skia_canvas/actions/workflows/ci.yml/badge.svg )] ( https://github.com/DjDeveloperr/skia_canvas/actions/workflows/ci.yml )
66[ ![ License] ( https://img.shields.io/github/license/DjDeveloperr/skia_canvas )] ( https://github.com/DjDeveloperr/skia_canvas/blob/master/LICENSE )
77[ ![ Sponsor] ( https://img.shields.io/static/v1?label=Sponsor&message=%E2%9D%A4&logo=GitHub&color=%23fe8e86 )] ( https://github.com/sponsors/DjDeveloperr )
@@ -11,7 +11,7 @@ Fast HTML Canvas API implementation for Deno using Skia.
1111## Example
1212
1313``` ts
14- import { createCanvas } from " https://deno.land/x/skia_canvas @0.5.5/mod.ts " ;
14+ import { createCanvas } from " jsr:@gfx/canvas @0.5.6 " ;
1515
1616const canvas = createCanvas (300 , 300 );
1717const ctx = canvas .getContext (" 2d" );
@@ -39,13 +39,13 @@ canvas.save("image.png");
3939## Usage
4040
4141Since this library depends on the unstable FFI API, you must pass ` --allow-env ` ,
42- ` --allow-ffi ` and ` --unstable ` flags. Without it, the module will fail to find
43- and open native library.
42+ ` --allow-ffi ` and ` --unstable-ffi ` flags. Without it, the module will fail to
43+ find and open native library.
4444
4545``` sh
46- deno run --allow-ffi --allow-env --unstable < file>
46+ deno run --allow-ffi --allow-env --unstable-ffi < file>
4747# or just
48- deno run -A --unstable < file>
48+ deno run -A --unstable-ffi < file>
4949```
5050
5151## API
0 commit comments