Created
September 7, 2012 09:34
-
-
Save dahlia/3664637 to your computer and use it in GitHub Desktop.
Mad experiments on Wand placement API
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
from wand.display import display | |
from wand.image import Image | |
from wand.place import place | |
with Image(...) as a, Image(...) as b, \ | |
Image(...) as c, Image(...) as d, \ | |
Image(...) as e: | |
with place(''' | |
|a | |b | | |
|c| | |
|d| | |
|e| | |
''', a=a, b=b, c=c, d=d, e=e) as result: | |
display(result) | |
with place(''' | |
|a | |b| | |
| | | |
| | |c| |e| | |
|d| | |
''', a=a, b=b, c=c, d=d, e=e) as result: | |
display(result) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment