Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- documentclass{standalone}
- usepackage{tikz}
- usetikzlibrary{hobby}
- usetikzlibrary{backgrounds}
- usetikzlibrary{decorations.markings}
- usetikzlibrary{arrows.meta}
- tikzset{>=stealth}
- tikzset{
- clockwise arrows/.style={
- postaction={
- decorate,
- decoration={
- markings,
- mark=between positions 0 and 1 step 40pt with {arrow{>}},
- }}}}
- begin{document}
- begin{tikzpicture}[framed]
- coordinate (B1) at (7,-1);
- coordinate (B2) at (7,1);
- coordinate (A1) at (1,2);
- coordinate (A2) at (1,-2);
- draw[magenta, thick, clockwise arrows] (A1) -- (A2);
- draw[magenta, thick, clockwise arrows] (B1) -- (B2);
- draw[magenta,thick,use Hobby shortcut, clockwise arrows] (B2) .. (4.5,2) .. (3,3) .. (A1);
- draw[magenta,thick,use Hobby shortcut, clockwise arrows] (A2) .. (3,-3) .. (4.5,-2) .. (B1);
- end{tikzpicture}
- end{document}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement