A collection of sketches that demonstrate the use of sketch-wrapper
and other libraries used together.
- Download or clone this repo to your machine.
cd
into the downloaded folder.- Intall the dependencies by running
npm install
in your Terminal. You need to have Node.js installed on your computer. - To run the sketch, in the Terminal, run
npm start
. The repo uses Vite.js for dev server. - Open the browser and go to the localhost. By default, it is
http:https://localhost:5173/
. - In the
examples
folder, there are both TypeScript and JavaScript sketches. JS sketches are compiled from TS. To run any of the sketches, update the<script>
tag inindex.html
to point to a JS or TS sketch.
Click each image to see the TypeScript source code.
2d-basic | 2d-resize | ogl-cube |
---|---|---|
![]() |
![]() |
![]() |
pts-grid | two-basic | webgl-basic |
---|---|---|
![]() |
![]() |
![]() |