Comment

Comment by _spduchamp

ChatGPT knows P5.js pretty well so you can ask "Write a P5 program that plots a sine wave and let's me control phase with a slider." and it does it.

I used P5.js with ChatGPT to make a design tool that balances 5 masses on a circumference for creating a rotary magnetic bow with reduced harmonic locking.

Drag vertices of the pentagon... https://editor.p5js.org/spDuchamp/full/zgtkE2xik

Here 3D printed result https://www.instagram.com/p/Cr4ZXGztY27/

parent _spduchamp 2 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton