proseminar/presentation/diagrams/diagramm_occlusion.tex
2023-06-15 16:42:02 +02:00

40 lines
No EOL
823 B
TeX

\documentclass[margin=5mm, tikz]{standalone}
\usepackage{tikz, ifthen, calc}
\begin{document}
\begin{tikzpicture}
\def\raynum{120}
\foreach \x in {0,...,\raynum} {
\ifthenelse{\x < 20 \OR \x>100}
{
\draw[color = red] (\x /\raynum * 6 ,0) -- (3,4);
}{
\draw[color = green] (\x /\raynum * 6 ,0) -- (3,4);
}
}
\fill[
white
] (1.49,1) -- (4.51,1) -- (5.01,0) -- (0.99,0) -- cycle;
\draw [color=red] (0,0) -- node[below]{wall} (6,0) ; % wall
\draw [color=green](1.5,1) -- node[below]{blocker} (4.5,1); %blocker
%cam
\node[
circle,
fill = black,
minimum width = 1mm,
outer sep = 2mm
] (camera) at (3,4) {};
\node at (camera.north) {camera};
\end{tikzpicture}
\end{document}