如何用 tikz 绘制一个人的照片?

如何用 tikz 绘制一个人的照片?

我会在我的图片上添加两个人推着板条箱的图画,就像这个图或类似的。你能帮我吗?

代码如下:

\documentclass{standalone}
\usepackage{bm}
\usepackage{tikz}
\usetikzlibrary{patterns,calc}

\begin{document}
\begin{tikzpicture}
    \pattern[pattern=north east lines,thin] (0,0) rectangle (12,-.5    );
    \draw (0,0) -- (12,0);
    \draw[very thick] (3,0) rectangle +(6,3);
    \draw[very thick,blue,->] ($(8,1.5)+(1,0)$) -- +(2,0) node[very near end,below] {$\vec{F}$};
    \draw[very thick,red,->] ($(1,1.5)+(-.0,0)$)-- +(2,0) node[very near start,below] {$\vec{F}$};
\end{tikzpicture}
\end{document}

在此处输入图片描述

答案1

不如图像模式@David Carlisle,但自豪地使用 tikz 完成:

\documentclass[tikz,border=7mm]{standalone}

\begin{document}
  \begin{tikzpicture}
    [line width=1cm, line cap=round, line join=round, rounded corners=4mm]
    % --- object ---
    \fill[red] (4,-10) rectangle +(11,15);
    \node[white,scale=30] at (9.5,-1){?};

    % pulling person
    \begin{scope}
      % --- body ---
      \draw (0,0) coordinate (A) -- ++(1,-4) coordinate (B);
      % --- legs ---
      \draw (B) -- ++(1,-3) -- ++(2,-3);
      \draw (B) -- ++(-1,-3) -- ++(2,-3);
      % --- arms ---
      \draw (A) -- ++(2,-1) -- ++(2,0);
      \draw (A) -- ++(2,-3) -- ++(2,0);
      % --- head ---
      \fill (A) ++(0,1.5) circle (1);
    \end{scope}

    % pushing person
    \begin{scope}[xshift=19cm]
      % --- body ---
      \draw (0,0) coordinate (A) -- ++(1,-4) coordinate (B);
      % --- legs ---
      \draw (B) -- ++(1,-3) -- ++(2,-3);
      \draw (B) -- ++(-1,-3) -- ++(2,-3);
      % --- arms ---
      \draw (A) -- ++(-2,-1) -- ++(-2,0);
      \draw (A) -- ++(-2,-3) -- ++(-2,0);
      % --- head ---
      \fill (A) ++(0,1.5) circle (1);
    \end{scope}
  \end{tikzpicture}
\end{document}

在此处输入图片描述

相关内容