mattdesl / canvas-sketch

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

canvas-sketch mysketch.js #193

Closed andresclua closed 1 year ago

andresclua commented 1 year ago

Hi there, I add stopped working with this library for almost 1 year, and today when I run "canvas-sketch mysketch.js" this command it's creating a lot of files like this on my downloads folder.

32897

Captura de pantalla 2023-08-18 a las 0 57 31

super random.

andresclua commented 1 year ago

If I do canvas-sketch test.js --output=output/01, it generates automatically inside that folder too. using 1.11.21

ca.zip

To reproduce it, download that zip, npm i and run canvas-sketch --new

andresclua commented 1 year ago

fixed, looks like I need to run canvas-sketch-cli instead of canvas-sketch.

Probably documentation could be a little more clear.

mattdesl commented 1 year ago

You should be able to run canvas-sketch (without -cli) if it's installed globally. If it's not installed globally, you'll need to run npx canvas-sketch-cli as in the docs.