Skip to content

nekanat/ts-p5

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Typescript-P5 project temlate, happy mutilating <3

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)

P5 sketch example

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

About

typescript p5 setup template

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published