Skip to content

Commit 0929d43

Browse files
committed
Added concept for local node canvas
1 parent 0f5ae1a commit 0929d43

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
// Consider https://skia-canvas.org/ for local js rendering in node
2+
3+
import {Canvas} from 'skia-canvas'
4+
5+
let canvas = new Canvas(400, 400)
6+
let ctx = canvas.getContext("2d")
7+
let {width, height} = canvas

0 commit comments

Comments
 (0)