Skip to content
Andy Gill edited this page Jun 17, 2014 · 14 revisions

Line in JavaScript

Line.hs

{-# LANGUAGE OverloadedStrings #-}
module Main where

import Graphics.Blank

main = blankCanvas 3000 $ \ context -> do
    send context $ do
        moveTo(100,150)
        lineTo(450,50)
        stroke()
Clone this wiki locally