Il y a une réponse formidable de Nikopol qui montre comment dessiner un terrain de handball : https://texnique.fr/osqa/questions/4641/comment-dessiner-efficacement-un-terrain-de-sport-avec-tikz/4656 Comment modifier cette réponse pour visualiser une stratégie de jeu ? |
Ouvrir dans l'éditeur Overleaf
\documentclass[tikz,border=2mm]{standalone} \tikzset{% >={latex}, field/.style={draw=red}, defence/.style={every node/.append style={font=\tiny,circle,fill=black,draw,inner sep=0pt,minimum size=0.2cm,text=white}}, offence/.style={every node/.append style={font=\tiny,circle,draw,inner sep=0pt,minimum size=0.2cm}} } \newcommand{\drawfield}{% \begin{scope}[field] \coordinate (A) at (-2, 0); \coordinate (B) at (2, 0); \coordinate (C) at (2, 3.2); \coordinate (D) at (-2, 3.2); \coordinate (E) at (-0.3, 0); \coordinate (F) at (0.3, 0); \draw (D.center) -- (A.center) -- (B.center)-- (C.center); \draw (E) ++ (0,1.2) arc (90:180:1.2); \draw (F) ++ (0,1.2) arc (90:0:1.2); \draw[dashed] (E) ++ (0,1.8) arc (90:160:1.8); \draw[dashed,dash phase=-2pt] (F) ++ (0,1.8) arc (90:20:1.8); \draw (-0.3, 1.2) -- (0.3, 1.2); \draw[dashed] (-0.2, 1.8) -- (0.3, 1.8); \draw (-0.03, 0.8)--(0.03, 0.8); \draw (-0.1, 1.4)--(0.1, 1.4); \end{scope} } \begin{document} \begin{tikzpicture} \drawfield \begin{scope}[offence] \node (off-M) at (0, 2.7) {2}; \node (off-K) at (-0.6, 1.32) {}; \node (off-HR) at (-1.5, 2.5) {}; \node (off-HL) at (1.5, 2.5) {}; \node (off-RA) at (-1.8, 0.7) {}; \node (off-LA) at (1.8, 0.7) {1}; \end{scope} \begin{scope}[defence] \node (def-M) at (-0.3, 1.35) {}; \node (def-K) at (0.3, 1.35) {}; \node (def-HL) at (-0.9, 1.22) {}; \node (def-HR) at (0.9, 1.22) {}; \node (def-LA) at (-1.35, 0.87) {}; \node (def-RA) at (1.35, 0.87) {}; \end{scope} \draw[->] (off-M) to[out=-20, in=110] (off-LA); \draw[->] (off-LA) to[out=110, in=0] (0.3, 1.6); \draw[dashed] (off-HR) -- (1.35, 1.6); \draw[->] (def-RA) -- (1, 1.15); \end{tikzpicture} \end{document} Publiée 01 Aoû '19, 21:31 samcarter |