Get a super simple animation working

This commit is contained in:
Camden Dixie O'Brien 2021-01-01 00:00:40 +00:00
parent 5c1bd5e84f
commit 57cd223bd0

10
Main.hs
View File

@ -3,5 +3,13 @@
module Main (main) where
import Graphics.Gloss
window :: Display
window = InWindow "Foo" (200, 200) (100, 100)
frame :: Float -> Picture
frame t = rotate (100 * t) $ rectangleSolid 80 80
main :: IO ()
main = putStrLn "Hello, Haskell!"
main = animate window white frame