Copy and paste the snippet below into your HTML.
An experiment to see if I could get a raytracer running in PICO-8. It's not very speedy, but it's as optimised as I could be bothered to do. If you find further optimisations I'd love to hear about them!