-
Notifications
You must be signed in to change notification settings - Fork 14
Load Image Data URL
RyanGlScott edited this page Oct 9, 2014
·
8 revisions
Here is the The raw URL data
{-# LANGUAGE OverloadedStrings #-}
module Main where
import qualified Data.Text.IO as Text.IO
import Graphics.Blank
import Paths_wiki_suite
import Wiki -- (578,200)
main :: IO ()
main = do
dat <- getDataDir
blankCanvas 3000 { root = dat } $ \ context -> do
url <- Text.IO.readFile "data/dataURL.txt"
send context $ do
img <- newImage url
drawImage (img,[0,0])