The basic idea is to use the code between the script tags as a random seed.
We draw an image into a buffer canvas and copy the buffer to the visible canvas.
The motif is a random quadratic curve. The color is a random rgba color.
The image can be regenerated by clicking the button "new drawing" in different dimensions, resolutions.