reanimate/examples/doc_xyzComponents.hs
David Himmelstrup 5e1f1fa4e9 Fix bug in xyzComponents documentation.
Former-commit-id: 3662ce918ad4eb0f969479a8e7df84aa2d82ccaf
2019-12-17 20:43:41 +08:00

14 lines
388 B
Haskell
Executable file

#!/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 xyzComponents yellow blue
where
yellow = PixelRGB8 0xFF 0xFF 0x00
blue = PixelRGB8 0x00 0x00 0xFF