diff options
| author | Akshay Nair <phenax5@gmail.com> | 2024-12-13 16:35:10 +0530 |
|---|---|---|
| committer | Akshay Nair <phenax5@gmail.com> | 2024-12-13 16:35:10 +0530 |
| commit | 7553b33b4d3caedd5650953acf7ae440f2154735 (patch) | |
| tree | 9649b4061be6d40f42b6d9dc285a70b65b4b3575 /src/Chelleport.hs | |
| download | chelleport-7553b33b4d3caedd5650953acf7ae440f2154735.tar.gz chelleport-7553b33b4d3caedd5650953acf7ae440f2154735.zip | |
Init commit with hello world shit
Diffstat (limited to '')
| -rw-r--r-- | src/Chelleport.hs | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/Chelleport.hs b/src/Chelleport.hs new file mode 100644 index 0000000..fdd443a --- /dev/null +++ b/src/Chelleport.hs @@ -0,0 +1,18 @@ +module Chelleport where + +import Graphics.Gloss + +open = + display + ( InWindow + "Hello World" -- window title + (400, 150) -- window size + (10, 10) -- window position + ) + white -- background color + picture -- picture to display + +picture = + Translate (-170) (-20) $ -- shift the text to the middle of the window + Scale 0.5 0.5 $ -- display it half the original size + Text "Hello World" -- text to display |
