An addon for p5.js which adds support for higher dimensional calculations.
Download the library file here, or read the documentation here.
Or if you don't feel like downloading, just use this embed script tag:
<script src="https://raw.githubusercontent.com/Smilebags/p5.dimensions.js/master/libraries/p5.dimensions.js"></script>