国外技术达人 Ivan Fioravanti 分别通过 o3-mini、o1-pro、r1 生成 p5.js 脚本(p5.js是一个 JavaScript 创意编程库),模拟一个圆柱形容器中粒子的物理运动,颇为有趣。

对比视频

p5.js 脚本生成提示词