mattdesl / canvas-sketch

[beta] A framework for making generative artwork in JavaScript and the browser.
MIT License
4.97k stars 393 forks source link

Can't start a new sketch from the Three.js template #164

Closed pazuzuuu closed 1 year ago

pazuzuuu commented 1 year ago

Hihi, I used the canvas-sketch webgl.js --new --template=three but I get the following: -bash: canvas-sketch: command not found

Not sure how to debug this as I have already installed canvas sketch and I'm able to open/create normal .js files. Newbie here, would greatly appreciate any help!

mattdesl commented 1 year ago

Hey there, you can see this comment which should solve your problem: https://github.com/mattdesl/canvas-sketch/issues/96#issuecomment-1231548822

The command you will use is:

npx canvas-sketch-cli webgl.js --new --template=three