reanimate/examples/doc_labComponents.hs
David Himmelstrup 405fe8d280 Fix interpolation gifs.
Former-commit-id: 1d596ff95e002b77fad2c5954e63846d252abf43
2019-11-29 09:35:30 +08:00

14 lines
388 B
Haskell

#!/usr/bin/env stack
-- stack runghc --package reanimate
module Main(main) where
import Reanimate
import Reanimate.Interpolate
import Reanimate.Builtin.Documentation
import Codec.Picture
main :: IO ()
main = reanimate $ docEnv $ animate $ const $ showColorMap $ interpolateRGB8 labComponents yellow blue
where
yellow = PixelRGB8 0xFF 0xFF 0x00
blue = PixelRGB8 0x00 0x00 0xFF