Advertisement
Guest User

Untitled

a guest
Aug 4th, 2015
185
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.74 KB | None | 0 0
  1. draw (0,0) -- (1,0);
  2. draw (1,0) -- (1,1);
  3.  
  4. draw (0,0) -- (1,0);
  5. draw -- (1,1);
  6.  
  7. draw (0,0) -- (1,0) -- (1,1);
  8.  
  9. documentclass[tikz,border=5]{standalone}
  10. usetikzlibrary{intersections}
  11. tikzset{%
  12. from end of path/.style={
  13. insert path={
  14. pgfextra{%
  15. expandafterpgfprocesspathextractpoints%
  16. csname tikz@intersect@path@name@#1endcsname%
  17. pgfpointlastonpath%
  18. pgfgetlastxylastxlasty
  19. }
  20. (lastx,lasty)
  21. }}}
  22.  
  23. begin{document}
  24. begin{tikzpicture}
  25. draw [name path=A] (0,0) -- (1,1);
  26. draw [red, from end of path=A, name path=B] arc (180:0:1);
  27. draw [green, from end of path=B, name path=C] -- ++(0,-1);
  28. draw [blue, from end of path=C] .. controls ++(0,-1) and ++(0,-2) .. (0,0);
  29. end{tikzpicture}
  30. end{document}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement