Get a super simple animation working
This commit is contained in:
parent
5c1bd5e84f
commit
57cd223bd0
10
Main.hs
10
Main.hs
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user