Sure! Here's a simple example of generative art implemented as a game using JavaScript and enclosed in script tags. This game allows you to generate random shapes by clicking on the screen and displays them as pictograms. You can play it as a finished game by trying to create interesting patterns or designs.
To play the game, you can open the HTML file in a web browser, preferably on a smartphone, and start clicking on the screen to generate the random shapes. Each click will create a circle, square, or triangle at the clicked position with random colors and sizes. The shapes will continuously animate and change colors over time due to the `animate` function being called repeatedly using `requestAnimationFrame`. Have fun creating generative art patterns!