Link to P5JS sketch

I had a spare minute and decided to attempt a small codegolf in shaders. I did the assignment without loops using distance functions and got it to 271 characters with hollow cores and antialiasing (241 without click random and antialias, 189 without hollow cores and antialias). The goal was to keep it under 280 characters.

Link to shader