reanimate/examples/doc_ternaryPlot.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
403 B
Haskell
Executable file

#!/usr/bin/env stack
-- stack runghc --package reanimate
module Main(main) where
import Reanimate hiding (raster)
import Reanimate.Builtin.Documentation
import Reanimate.Builtin.TernaryPlot
import Reanimate.ColorComponents
import Data.Colour.CIE
import Codec.Picture.Types
main :: IO ()
main = reanimate $ docEnv $ animate $ const $
ternaryPlot 1024 (\a b c -> promotePixel $ toRGB8 $ cieXYZ a b c)