Add intro_* examples.

Former-commit-id: fb66b98fa121ec36b903ac92057fc0405e68b93b
This commit is contained in:
David Himmelstrup 2020-05-14 11:01:26 +08:00
commit a256dd0a96
3 changed files with 228 additions and 0 deletions

7
examples/intro_hello.hs Normal file
View file

@ -0,0 +1,7 @@
#!/usr/bin/env stack
-- stack runghc --package reanimate
{-# LANGUAGE OverloadedStrings #-}
import Reanimate
main :: IO ()
main = reanimate $ addStatic (mkBackground "cyan") $ staticFrame 1 $ mkText "Hello world"