Advertisement
Guest User

Untitled

a guest
Oct 8th, 2015
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.74 KB | None | 0 0
  1. documentclass{standalone}
  2. usepackage{graphicx}
  3. usepackage{tikz}
  4. usetikzlibrary{calc,decorations.pathmorphing,patterns}
  5. usepackage{fontspec}
  6. setmainfont{AlphaMack AOE}
  7.  
  8. makeatletter
  9. pgfdeclaredecoration{penciline}{initial}{
  10. state{initial}[width=+pgfdecoratedinputsegmentremainingdistance,auto corner on length=1mm,]{
  11. pgfpathcurveto%
  12. {% From
  13. pgfqpoint{pgfdecoratedinputsegmentremainingdistance}
  14. {pgfdecorationsegmentamplitude}
  15. }
  16. {% Control 1
  17. pgfmathrand
  18. pgfpointadd{pgfqpoint{pgfdecoratedinputsegmentremainingdistance}{0pt}}
  19. {pgfqpoint{-pgfdecorationsegmentaspectpgfdecoratedinputsegmentremainingdistance}%
  20. {pgfmathresultpgfdecorationsegmentamplitude}
  21. }
  22. }
  23. {%TO
  24. pgfpointadd{pgfpointdecoratedinputsegmentlast}{pgfpoint{1pt}{1pt}}
  25. }
  26. }
  27. state{final}{}
  28. }
  29. makeatother
  30.  
  31. begin{document}
  32.  
  33.  
  34. begin{tikzpicture}
  35. node[inner sep=0pt,outer sep=0pt]
  36. (imagebg)
  37. {includegraphics[width=7cm]{envelope.png}};
  38. node[text width=5cm,font=large]
  39. at (imagebg.center)
  40. {TO: A Friend \ over the other \side of the\ world};
  41. draw[white,thick,decoration=penciline,decorate]
  42. (imagebg.west) -- (imagebg.east) coordinate[pos=0.55] (aux1)
  43. coordinate (aux2) at ([shift={(20pt,20pt)}]aux1)
  44. coordinate (aux3) at ([shift={(-20pt,24pt)}]aux1);
  45. draw[overlay,white,thick]
  46. (aux1) to[out=60,in=180,looseness=1] (aux2)
  47. (aux2) to[out=0,in=30,looseness=1] (aux1)
  48. (aux1) to[out=160,in=-90,looseness=1] (aux3)
  49. (aux3) to[out=90,in=30,looseness=1] (aux1)
  50. (aux1) to[out=-30] ([shift={(10pt,-20pt)}]aux1)
  51. (aux1) to[out=-50] ([shift={(0pt,-20pt)}]aux1);
  52.  
  53. end{tikzpicture}
  54.  
  55. end{document}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement