Skip to content

Files

Latest commit

 

History

History

PaintSplatter

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Exercise I.4: Paint splatter

$ stack runghc src/Introduction/PaintSplatter/Sketch.hs

Paint splatter

This was an interesting exercise for the following reasons:

  • I had to figure out how to generate a list of random numbers with random-fu.
  • I had to really understand how the different transformations in gloss work together (translate, scale, ...)

Further improvements can still be made by adding more randomness.