Created
December 11, 2020 04:16
-
-
Save jasonsturges/51fa59be6c475e7909ea8186cc69222d to your computer and use it in GitHub Desktop.
3D with Svelte and Three.js
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 characters
<script> | |
import { onMount } from 'svelte'; | |
import { createScene } from "./scene"; | |
let el; | |
onMount(() => { | |
createScene(el) | |
}); | |
</script> | |
<canvas bind:this={el}></canvas> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment