Created
December 14, 2014 14:48
-
-
Save philipnilsson/0dcfc1c403b7164758c3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Main where | |
import Engine | |
pretty elem | |
= elem $= texture (fromFile "slim.jpg") | |
scene = | |
pretty cube $= rotateX 2t $= rotateY 3t | |
view = | |
fromBoundingBox scene | |
main = render (scene $= transform view) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment