-
Notifications
You must be signed in to change notification settings - Fork 14
Load Image Data URL
Andy Gill edited this page Dec 6, 2019
·
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
main :: IO ()
main = do
blankCanvas 3000 $ \ context -> do
url <- Text.IO.readFile "data/dataURL.txt"
send context $ do
img <- newImage (URL url)
drawImage (img,[0,0])