I wanted to render a perfect sphere in JavaScript. See it running in your browser. Warning, it’s not optimised and will consume copious amounts of CPU.