reanimate/examples/doc_hsvComponents.hs
Tristan Cacqueray d92660fe18 Rename Interpolate module to ColorComponents
Fixes #73


Former-commit-id: d95bb857fb676acc16669b58014fae33f697f61f
2020-05-21 21:12:33 +08:00

14 lines
392 B
Haskell
Executable file

#!/usr/bin/env stack
-- stack runghc --package reanimate
module Main(main) where
import Reanimate
import Reanimate.Builtin.Documentation
import Reanimate.ColorComponents
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