reanimate/examples/latex_color.hs
Jan Hrček 3d20cf49ef Fix some hlint warnings
Former-commit-id: e9b81a8bc0b0c99abe57644e8806c437759ca687
2019-12-11 07:50:27 +08:00

20 lines
610 B
Haskell
Executable file

#!/usr/bin/env stack
-- stack runghc --package reanimate
{-# LANGUAGE OverloadedStrings #-}
module Main (main) where
import Reanimate
main :: IO ()
main = reanimate $ animate $ const $
mkGroup
[ mkBackground "black"
, withStrokeColor "white" $
withSubglyphs [0] (withFillColor "blue") $
withSubglyphs [1] (withFillColor "yellow") $
withSubglyphs [2] (withFillColor "green") $
withSubglyphs [3] (withFillColor "red") $
withSubglyphs [4] (withFillColor "darkslategrey")
svg ]
where
svg = withStrokeWidth 0.01 $ scale 4 $ center $ latex "\\LaTeX"