+I mentioned that the probability monad can be used in generative art. Generative art is, broadly, art that is generated by some algorithmic process. This can include an element of randomness. While there are papers on generative art (e.g. [@boden09:generative; @dorin12:generative]), and many other resources that discuss it, it's much more fun to create some yourself. Figure [@fig:indexed-types:cycloid] shows an example of generative art, though this example is not one that uses randomness. The code is below, and it has many knobs that you can play with to create your own example. Just add the `@main` annotation to the `cycloid` method and you can run the code from the Scala CLI. Have fun!
0 commit comments