Skip to content

Instantly share code, notes, and snippets.

@dahlia
Created September 7, 2012 09:34
Show Gist options
  • Save dahlia/3664637 to your computer and use it in GitHub Desktop.
Save dahlia/3664637 to your computer and use it in GitHub Desktop.
Mad experiments on Wand placement API
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