Last active
December 19, 2015 00:59
-
-
Save schell/5873085 to your computer and use it in GitHub Desktop.
Using Reader to sequence a thing over a list functions to produce a list of things.
This file contains hidden or 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
toTriangleRect :: Rectangle -> [GLfloat] | |
toTriangleRect (Rectangle (x,y) (w,h)) = concat [tl, bl, br, br, tl, tr] | |
where tl = [x,y] | |
tr = [x+w,y] | |
bl = [x,y+h] | |
br = [x+w,y+h] | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment