donuts are good, so i made one with webgl. this is a minimal webgl project that renders a rotating 3d donut (torus) in the browser. if you want to learn how to implement your own you can checkout mozzila docs--> here
open index.html in your browser.
if you get any CORS errors in your browser run it with vscode live server extension
live server
no dependencies required.