Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
P5.js: Online Canvas Programming (p5js.org)
11 points by vram22 on Feb 27, 2024 | hide | past | favorite | 4 comments


BTW, ChatGPT knows P5js pretty well. You can ask things like, "Write a P5js app that draws a sine wave and lets me control the phase." and out pops a working program with a slider to change the phase of a plotted sine wave.

I used this to build a design tool to create an irrational phased balanced rotary magnetic bow. https://editor.p5js.org/spDuchamp/full/zgtkE2xik

https://twitter.com/CommonStef/status/1654663207707979776

I was cutting and pasting big chunks of code between the P5js editor and ChatGPT in both directions. It would be super handy to have some sort of online P5js editor with ChatGPT integrated.


There's a p5.js kernel in JupyterLite: https://jupyterlite.readthedocs.io/en/stable/_static/lab/ind...

Khan Academy Computer Programming "Unit 1: Intro to JS: Drawing & Animation" has ProccesingJS challenges. P5.js is the new ProcessingJS, and it's pretty much compatible. https://www.khanacademy.org/computing/computer-programming/p...


Why does this show up here? It’s very popular and well known and nothing new is to be seen here ..


it's new to me.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: