I'm using TikZ to draw a cloud. Also I'm drawing arrows from the cloud to some nodes.
But the startpoints of the arrows are in or outside the cloud but not exactly on the outer line.
I think the picture shows my problem:
As well here is an MWE:
\documentclass{minimal}
\usepackage{tikz}
\usetikzlibrary{shapes}
\begin{document}
\begin{tikzpicture}
\node[cloud, cloud puffs=15.7, minimum width=3cm, draw] (cloud) at (0,0) {Cloud};
\path[->] (cloud) edge (2, 2)
(cloud) edge (2, 1);
\end{tikzpicture}
\end{document}
As you may think by yourself my question is how to position the start points of the arrows on the line of the cloud.
Best Answer
You can either use an integer number of puffs or the
intersections
library and find the points manually.Notes:
(2,1)
and(2,2)
to not repeat hard-coded coordinates..center
is neede because in the second example (the one to(2,1)
) the(cloud) -- (2,1)
does not intersect with the cloud’s border.Code
Output