I am trying to draw a cloud figure in the background of a cylinder. Original example, sorry I was not able to find the cylinder version of it:
Latex version of the wanted figure:
What I have as follows, cloud is taken from the following answer for Asymmetric cloud shape in TikZ:
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{shapes}
\usetikzlibrary{calc}
\newcommand{\AsymCloud}[3]{
\begin{scope}[shift={#1},scale=#3]
\draw (-1.6,-0.7) .. controls (-2.3,-1.1)
and (-2.7,0.3) .. (-1.7,0.3)coordinate(asy1) .. controls (-1.6,0.7)
and (-1.2,0.9) .. (-0.8,0.7) .. controls (-0.5,1.5)
and (0.6,1.3) .. (0.7,0.5) .. controls (1.5,0.4)
and (1.2,-1) .. (0.4,-0.6)coordinate(asy2) .. controls (0.2,-1)
and (-0.2,-1) .. (-0.5,-0.7) .. controls (-0.9,-1)
and (-1.3,-1) .. cycle;
\node at ($(asy1)!0.5!(asy2)$) {#2};
\end{scope}
}
\begin{document}
\pagestyle{empty}
\begin{tikzpicture}
\AsymCloud{(0,1)}{}{1} at (0,1)
%\AsymCloud{coordinate}{text}{scale factor}
\node[text width=1cm,text centered] (A) [cylinder, shape border rotate=90, draw,minimum height=0.5cm,minimum
width=0.5cm, shape
aspect=0.4,execute at begin node=\setlength{\baselineskip}{8pt}]{\scriptsize{Cloud Storage}};
\end{tikzpicture}
\end{document}
I was not able to aligh cloud to correct place and draw it in the background. If possible I want to define cloud as a node.
its output:
Related:





execute at begin node=...come from? -For me that seems like a very extreme way to do a simple thing. – hpekristiansen Jul 09 '22 at 12:21