-
Notifications
You must be signed in to change notification settings - Fork 14
Image Loader
RyanGlScott edited this page Oct 9, 2014
·
9 revisions
{-# LANGUAGE OverloadedStrings #-}
module Main where
import Graphics.Blank
import Paths_wiki_suite
main :: IO ()
main = do
dat <- getDataDir
blankCanvas 3000 { root = dat } $ \ context -> do
send context $ do
img1 <- newImage "/images/Haskell.jpg"
img2 <- newImage "/images/House.jpg"
drawImage(img1,[69,50,97,129])
drawImage(img2,[200,50])