mattdesl / canvas-sketch

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

Output is not working as I'd expect #142

Closed uxwellbeing closed 2 years ago

uxwellbeing commented 2 years ago

Hi, I tried commend+S many times. Though the canvas-sketch is working, the .png file saved are not the same shape in the browser.

fturcheti commented 2 years ago

Depending on the way your code is structured, this can happen. Can you share your code here?

hjco commented 2 years ago

Same problem, output not work.

OS: Linux 5.10.105-1-MANJARO x86_64 GNU/Linux Node version: v14.15.5 Error: Nothing in the console Instalation mode: npm install canvas-sketch-cli -g, yarn global canvas-sketch-cli, sudo npm install -g canvas-sketch-cli Canvas cli:

canvas-sketch sketch.js --output=output/
CANVAS_SKETCH_OUTPUT=./outputs canvas-sketch sketch.js  

Code: the sketch canvas-sketch-cli auto generate file the first time

tomxiaa commented 2 years ago

Does anyone have any update on this? I'm having the same issue

L-A commented 2 years ago

Hi all, I've posted the most common explanation and solution in #155, which is a probably duplicate of this question. You can see it here: https://github.com/mattdesl/canvas-sketch/issues/155#issuecomment-1128046756

mattdesl commented 2 years ago

Going to close as the steps above should hopefully resolve things. Please comment if there is further issue.