-
Notifications
You must be signed in to change notification settings - Fork 14
Line Cap
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
sequence_
[ do beginPath()
moveTo(200, height context / 2 + n)
lineTo(width context - 200, height context / 2 + n)
lineWidth 20
strokeStyle "#0000ff"
lineCap cap
stroke()
| (cap,n) <- zip ["butt","round","square"] [-50,0,50]
]