How to display beautiful math equations in p5.js?

Viewed 868

Is there an easy way of rendering LaTeX equations in p5.js?

I naively tried to use KaTeX by including their auto-render starting template in the index.html of a p5.js editor template and then writing an "equation" like

text("$$\\epsilon = 0.4$$", 30, 30);

in the draw() function. This failed, see here.

0 Answers
Related