January 2023
Intermediate to advanced
648 pages
17h 32m
English

A picture that changes over time can be a good way to visualize many situations. The Haskell Prelude itself does not have any support for animation, but some good library packages are available at https://hackage.haskell.org. For two-dimensional pictures and animations, we’ll use the gloss package. For three-dimensional pictures and animations, we’ll use a package named not-gloss.
The gloss package supplies the Graphics.Gloss module, which provides four main functions: display, animate, simulate, and play. The first is for still pictures, the second and third are for pictures that change with time, ...
Read now
Unlock full access