-
-
Save juyal-ahmed/168bd2b9ad08e0eeca6fb7b2b08a9190 to your computer and use it in GitHub Desktop.
Revisions
-
RobinMoretti revised this gist
Sep 12, 2023 . 1 changed file with 10 additions and 10 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -5,19 +5,19 @@ import { ref, onMounted } from 'vue' const canvas = ref(null) onMounted(()=>{ paper.setup(canvas.value); var path = new paper.Path(); path.strokeColor = 'black'; var start = new paper.Point(100, 100); path.moveTo(start); path.lineTo(start.add([ 200, -50 ])); paper.view.draw(); }) </script> <template> <main> <canvas id="paper-canvas" ref="canvas" resize></canvas> </main> </template> -
RobinMoretti revised this gist
Sep 12, 2023 . No changes.There are no files selected for viewing
-
RobinMoretti created this gist
Sep 12, 2023 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,23 @@ <script setup> import paper from "paper" import { ref, onMounted } from 'vue' const canvas = ref(null) onMounted(()=>{ paper.setup(canvas.value); var path = new paper.Path(); path.strokeColor = 'black'; var start = new paper.Point(100, 100); path.moveTo(start); path.lineTo(start.add([ 200, -50 ])); paper.view.draw(); }) </script> <template> <main> <canvas id="paper-canvas" ref="canvas" resize></canvas> </main> </template>