reanimate/examples/doc_ternaryPlot.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
399 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.Interpolate
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)