In [ ]:
{-# LANGUAGE TypeSynonymInstances, FlexibleInstances #-}
import IHaskell.Display.Juicypixels
import Codec.Picture
myImage = generateImage pixelRenderer 250 300
where pixelRenderer x y = PixelRGB8 (fromIntegral x) (fromIntegral y) 128
myImage