Skip to content

Commit

Permalink
feat(README): fix typo; feat(examples): remove unused import
Browse files Browse the repository at this point in the history
  • Loading branch information
DjDeveloperr committed Nov 23, 2020
1 parent f9c4d32 commit 4d77c60
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,5 @@ const image = await loadImage(myURL);
ctx.drawImage(image, x, y);
```

And run with `deno run --allow-red --allow-read filename.ts`!
And run with `deno run --allow-net --allow-read filename.ts`!
Or you can directly run from URL, https://raw.githubusercontent.com/DjDeveloperr/deno-canvas/master/examples/square.ts
1 change: 0 additions & 1 deletion examples/image.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import Canvas, { CanvasRenderingContext2D, dataURLtoFile, loadImage } from '../mod.ts'
import { serve } from "https://deno.land/[email protected]/http/server.ts";
import { fetchAuto } from "../deps.ts";

const canvas = Canvas.MakeCanvas(200, 200);
const ctx = canvas.getContext('2d') as CanvasRenderingContext2D;
Expand Down

0 comments on commit 4d77c60

Please sign in to comment.