Advertisement
Guest User

Untitled

a guest
May 3rd, 2015
190
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.52 KB | None | 0 0
  1. documentclass{standalone}
  2. usepackage{tikz}
  3.  
  4. begin{document}
  5. begin{tikzpicture}[scale=1]
  6.  
  7. tikzstyle{help lines}=[blue!20, very thin];
  8. draw[help lines, step=1mm, very thin] (-10,-10) grid (10,10)
  9. [help lines, step=1cm, thin] (-10,-10) grid (10,10);
  10.  
  11.  
  12. pgfmoveto{pgfpointxy{-1.3}{0}}
  13. pgfpathcurveto{pgfpointxy{-3.3}{-5.3}}{pgfpointxy{-.3}{-5.3}}{pgfpointxy{0}{-5.3}}
  14. pgfpathcurveto{pgfpointxy{.3}{-5.3}}{pgfpointxy{3.3}{-5.3}}{pgfpointxy{1.3}{0}}
  15. pgfpathcurveto{pgfpointxy{3.3}{5.3}}{pgfpointxy{.3}{5.3}}{pgfpointxy{0}{5.3}}
  16. pgfpathcurveto{pgfpointxy{-.3}{5.3}}{pgfpointxy{-3.3}{5.3}}{pgfpointxy{-1.3}{0}}
  17. pgfpathclose
  18. pgfsetstrokeopacity{0.5}
  19. pgfusepath{stroke}
  20.  
  21. pgfmoveto{pgfpointxy{-1}{0}}
  22. pgfpathcurveto{pgfpointxy{-3}{-5}}{pgfpointxy{-.1}{-5}}{pgfpointxy{0}{-5}}
  23. pgfpathcurveto{pgfpointxy{.1}{-5}}{pgfpointxy{3}{-5}}{pgfpointxy{1}{0}}
  24. pgfpathcurveto{pgfpointxy{3}{5}}{pgfpointxy{.1}{5}}{pgfpointxy{0}{5}}
  25. pgfpathcurveto{pgfpointxy{-.1}{5}}{pgfpointxy{-3}{5}}{pgfpointxy{-1}{0}}
  26. pgfpathclose
  27. pgfsetstrokeopacity{0.5}
  28. pgfusepath{stroke}
  29.  
  30. foreach y [remember=y as x (initially 0)] in {.1,.2,...,1} {
  31. pgfpathcurvebetweentime{x}{y}{pgfpointxy{-1.3}{0}}{pgfpointxy{-3.3}{-5.3}}{pgfpointxy{-.3}{-5.3}}{pgfpointxy{0}{-5.3}}
  32. pgfpathlineto{pgfpointcurveattime{y}{pgfpointxy{-1}{0}}{pgfpointxy{-3}{-5}}{pgfpointxy{-.1}{-5}}{pgfpointxy{0}{-5}}}
  33. pgfpathcurvebetweentimecontinue{y}{x}{pgfpointxy{-1}{0}}{pgfpointxy{-3}{-5}}{pgfpointxy{-.1}{-5}}{pgfpointxy{0}{-5}}
  34. pgfpathclose
  35. pgfsetstrokeopacity{1}
  36. pgfusepath{stroke}
  37. };
  38.  
  39. end{tikzpicture}
  40. end{document}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement