-1

I would like to convert the following picture, which is a cross section of an engine, into a TikZ code:

picture

  • How to start with this picture?
  • How to draw the walls and pipes in an easy way?
  • How to draw the oil (the hatched area)?
MattAllegro
  • 6,455
  • 5
  • 45
  • 52
19yc93
  • 15
  • 1
  • 4

1 Answers1

0

How to draw the oil (the hatched area)?

One way may be to use pattern=north east lines from patterns library described at page 730 of the PGF Manual:

\documentclass[tikz,border=5mm]{standalone}
\usetikzlibrary{patterns}

\begin{document}

\begin{tikzpicture}
\fill [pattern=north east lines] (0,6) -- (0,0) -- (10,0) -- (10,6);
\draw  (0,10) -- (0,0) -- (10,0) -- (10,10);
\end{tikzpicture}

\end{document}
MattAllegro
  • 6,455
  • 5
  • 45
  • 52