mirror of
https://github.com/reanimate/reanimate.git
synced 2026-09-09 15:12:21 +00:00
15 lines
369 B
Haskell
Executable file
15 lines
369 B
Haskell
Executable file
#!/usr/bin/env stack
|
|
-- stack runghc --package reanimate
|
|
{-# LANGUAGE OverloadedStrings #-}
|
|
module Main (main) where
|
|
|
|
import Reanimate
|
|
import Reanimate.Builtin.Documentation
|
|
import qualified Data.Text as T
|
|
|
|
main :: IO ()
|
|
main = reanimate $ docEnv $ mkAnimation 2 $ \t ->
|
|
scale 2 $
|
|
withStrokeWidth 0.05 $
|
|
mkText (T.take (round $ t*15) "text")
|
|
|