-
Notifications
You must be signed in to change notification settings - Fork 14
Image Loader
Andy Gill edited this page Dec 6, 2019
·
9 revisions
{-# LANGUAGE OverloadedStrings #-}
module Main where
import Graphics.Blank
main :: IO ()
main = do
blankCanvas 3000 $ \ context -> do
url1 <- staticURL context "type/jpeg" "images/Haskell.jpg"
url2 <- staticURL context "type/jpeg" "images/House.jpg"
send context $ do
img1 <- newImage url1
img2 <- newImage url2
drawImage(img1,[69,50,97,129])
drawImage(img2,[200,50])