run npm run dev
preview npm run preview
pages run on http://localhost:5173/
testing :
npm run test
npm run test -- --watch
(watching for changes)
import p5 from "p5";
const sketch = (p: p5) => {
p.setup = () => {
p.createCanvas(p.windowWidth, p.windowHeight);
p.background(35, 57, 68);
};
p.draw = () => {
p.rect(30, 30, 70, 70);
p.fill(p.random(0, 255));
};
};
new p5(sketch);
Check tsconfig.json for more information, thank you.
Built via Vite