-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Initial attempts at embedded image support for SVG backend
See #11. Does not actually work yet. Note this means the SVG render monad now has to involve IO (in order to read in the external image data), which makes me a little sad.
- Loading branch information
Brent Yorgey
committed
Oct 15, 2013
1 parent
69437ed
commit 60b474f
Showing
6 changed files
with
44 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{-# LANGUAGE NoMonomorphismRestriction #-} | ||
|
||
import Diagrams.Backend.SVG.CmdLine | ||
import Diagrams.Prelude | ||
|
||
no = (circle 1 <> hrule 2 # rotateBy (1/8)) | ||
# lw 0.2 # lc red | ||
example = no <> image "phone.png" 1.5 1.5 | ||
|
||
main = defaultMain (example # centerXY # pad 1.1) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
60b474f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am going to drop this for now; what is really needed, I think, is some more design work on diagrams/diagrams-lib#29.