Skip to content

University of Edinburgh Inf1A FP Competition work

License

Notifications You must be signed in to change notification settings

MrTooOldDriver/UoE-Haskell-FP-Competition

Repository files navigation

Haskell-FP-Competition

University of Edinburgh 2019 Inf1A FP Competition work

Image of preview

This is a simple program that display Bezier curve with colour transformation

Install package GLUT first

cabal install GLUT

or

stack install GLUT

main.hs -- Bezier function and main display function

ColourProfile.hs -- Colour transformation function and pre-define colour profile(in RGB)

LinesSet.hs -- Pre-define lines set

Note

Change different colour profile in main.hs.

I only define Cubic Bezier Function.

Example output image are in ./OutputImage

Credit:

LSystem.hs --From tutorial7

https://wiki.haskell.org/OpenGLTutorial1

https://wiki.haskell.org/OpenGLTutorial2

BEAUTIFUL CODE ,COMPELLING EVIDENCE -J.R. Heard https://www.renci.org/wp-content/pub/tutorials/BeautifulCode.pdf

Update 11.16.2019

All code now available to the public

About

University of Edinburgh Inf1A FP Competition work

Resources

License

Stars

Watchers

Forks

Packages

No packages published