mirror of
https://github.com/reanimate/reanimate.git
synced 2026-09-09 15:12:21 +00:00
14 lines
401 B
Haskell
Executable file
14 lines
401 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 $ scene $ do
|
|
now <- play drawCircle *> queryNow
|
|
play $ staticFrame 1 $ scale 2 $ withStrokeWidth 0.05 $
|
|
mkText $ "Now=" <> T.pack (show now)
|