I have been trying to do this online pattern generator using shading language.
Enter a formula: Example formulas to enter:
In this post I have shared a canvas with some shader code pre-populated. You can easily lookup the code of this shader by right clicking and selecting inspect. Now this is something you do very often to inspect your DOM from the browser. And some more advice to you is to experiment with Three.js that I used to render the shader.