reanimate/examples/doc_hsvComponents.hs
Jan Hrček b82e7e5614 Run 'chmod +x' on all example scripts
Former-commit-id: eed522cbdf8c6e5262c6c8b487d37549ba5013dc
2019-12-10 10:38:10 +01: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 hsvComponents yellow blue
where
yellow = PixelRGB8 0xFF 0xFF 0x00
blue = PixelRGB8 0x00 0x00 0xFF