-
Notifications
You must be signed in to change notification settings - Fork 14
Text Baseline
RyanGlScott edited this page Oct 9, 2014
·
4 revisions
{-# LANGUAGE OverloadedStrings #-}
module Main where
import Graphics.Blank
main :: IO ()
main = blankCanvas 3000 $ \ context -> do
send context $ do
let x = width context / 2
let y = height context / 2
font "30pt Calibri"
textAlign "center"
textBaseline "middle"
fillStyle "blue"
fillText("Hello World!", x, y)