Twinside / Juicy.Pixels

Haskell library to load & save pictures
BSD 3-Clause "New" or "Revised" License
237 stars 57 forks source link

generateImage example outdated #107

Closed samvher closed 9 years ago

samvher commented 9 years ago

The example code for imageCreator seems outdated, it won't compile for me because PixelRGB8 expects a Word8 as input (not Int). This does work:

imageCreator :: String -> IO ()
imageCreator path = writePng path $ generateImage pixelRenderer 250 300
   where pixelRenderer x y = PixelRGB8 (fromIntegral x) (fromIntegral y) 128

For the rest it works and I like the library, thanks for the effort.

samvher commented 9 years ago

I created a pull request I guess that's better.