Skip to content

Instantly share code, notes, and snippets.

-- file: QuickPiet.hs
-- An implementation of QuickPiet by Ben Lee
-- based on the Piet language by ???
-- I haven't tested this code, but if you'd like to, then the following will get you on your way:
-- $ ghc --make QuickPiet.hs
-- $ ./QuickPiet filename
-- where filename is some script file you want to run
-- Good Luck!
import Graphics.Rendering.OpenGL
import Graphics.UI.GLUT
n :: [Normal3 GLfloat]
n = [(Normal3 (-1.0) 0.0 0.0),
(Normal3 0.0 1.0 0.0),
(Normal3 1.0 0.0 0.0),
(Normal3 0.0 (-1.0) 0.0),
(Normal3 0.0 0.0 1.0),
(Normal3 0.0 0.0 (-1.0))]