Simon Willison Uses Claude to Port Three.js Animation to Vanilla WebGL
Developer Simon Willison successfully used Claude (Opus 5.5 Medium) to port a Nudibranch-themed Faberge Egg 3D animation from Three.js to vanilla WebGL and JavaScript without external libraries. This experiment demonstrates the impressive capability of modern LLMs in rapid AI-assisted prototyping and translating complex graphics code across different API abstraction layers. The resulting vanilla WebGL implementation weighed 98KB compared to the original 77KB Three.js version, while achieving a visually similar result entirely through AI generation.
## BACKGROUND
Three.js is a popular JavaScript library that simplifies creating 3D graphics in browsers by wrapping WebGL, a low-level API that communicates directly with the computer's GPU for rendering interactive graphics.