began black and white edition

This commit is contained in:
CDaut 2023-07-06 15:59:51 +02:00
parent e5b12d9bad
commit 22207962d8
4 changed files with 20 additions and 20 deletions

View file

@ -21,7 +21,7 @@
% occlusion tri % occlusion tri
\draw[ \draw[
fill, fill,
red darkgray
] (3,2) -- (4.5,0.2) -- (6,3); ] (3,2) -- (4.5,0.2) -- (6,3);
% samples % samples
@ -33,5 +33,5 @@
5/0.5, 5/0.5,
5/2.5 5/2.5
} }
\node[fill = yellow] at (\x,\y) {}; \node[fill = black] at (\x,\y) {};
\end{tikzpicture} \end{tikzpicture}

View file

@ -1,24 +1,24 @@
\begin{tikzpicture}[scale = 0.9, every node/.style={scale=0.9}] \begin{tikzpicture}[scale = 0.9, every node/.style={scale=0.9}]
\def\raynum{60} \def\raynum{18}
\foreach \x in {0,...,\raynum} { \foreach \x in {0,...,\raynum} {
\ifthenelse{\x < 10 \OR \x>50} \ifthenelse{\x < 3 \OR \x>15}
{ {
\draw[color = darkgray] (\x /\raynum * 6 ,0) -- (3,4); \draw[color = black] (\x /\raynum * 6 ,0) -- (3,4);
}{ }{
\draw[color = red] (\x /\raynum * 6 ,0) -- (3,4); \draw[color = lightgray] (\x /\raynum * 6 ,0) -- (3,4);
} }
} }
\fill[ \fill[
white white
] (1.49,1) -- (4.51,1) -- (5.01,0) -- (0.99,0) -- cycle; ] (1.48,1) -- (4.52,1) -- (5.02,0) -- (0.98,0) -- cycle;
\draw [color=darkgray] (0,0) -- node[below]{wall} (6,0) ; % wall \draw [color=black] (0,0) -- node[below]{wall} (6,0) ; % wall
\draw [color=red](1.5,1) -- node[below]{blocker} (4.5,1); %blocker \draw [color=black](1.5,1) -- node[below]{blocker} (4.5,1); %blocker
%cam %cam
\node[ \node[
@ -37,11 +37,11 @@
\fill[ \fill[
red gray
] (5,3) -- (6.7,3) -- (6.7,3.3) -- (5,3.3) -- cycle; ] (5,3) -- (6.7,3) -- (6.7,3.3) -- (5,3.3) -- cycle;
\draw[darkgray] (8,2) coordinate (darkgray_ray_isec) -- (5,5) coordinate (orig); \draw[black] (8,2) coordinate (darkgray_ray_isec) -- (5,5) coordinate (orig);
\draw[red] (6.4,3.3) coordinate (red_ray_isec) -- (5,5); \draw[gray] (6.4,3.3) coordinate (red_ray_isec) -- (5,5);
%line %line
\draw (mag.north east) -- (7,2); \draw (mag.north east) -- (7,2);

View file

@ -22,7 +22,7 @@
% occlusion tri % occlusion tri
\draw[ \draw[
fill, fill,
red darkgray
] (3,2) -- (4.5,0.2) -- (6,3); ] (3,2) -- (4.5,0.2) -- (6,3);
% samples % samples
@ -33,10 +33,10 @@
3.5/2.5, 3.5/2.5,
5.5/0.5 5.5/0.5
} }
\node[fill = yellow] at (\x,\y) {}; \node[fill = black] at (\x,\y) {};
\node[ \node[
fill = yellow, fill = black,
fill opacity = 0.4, fill opacity = 0.5,
] at (4.5,1.5) {}; ] at (4.5,1.5) {};
\end{tikzpicture} \end{tikzpicture}

View file

@ -5,8 +5,8 @@
\draw[->] (-0.2,-0.5) -- (2.2,-0.5) node[right] {$\omega$}; \draw[->] (-0.2,-0.5) -- (2.2,-0.5) node[right] {$\omega$};
\draw[->] (0,-0.7) -- (0,2.2) node[above] {$V(x,\omega)$}; \draw[->] (0,-0.7) -- (0,2.2) node[above] {$V(x,\omega)$};
\draw (0,0) -- (1,0) plot coordinates {(0,0) (1,0)}[color=red]; \draw (0,0) -- (1,0) plot coordinates {(0,0) (1,0)}[color=black];
\draw (1,1) -- (2,1) plot coordinates {(1,1) (2,1)}[color=red]; \draw (1,1) -- (2,1) plot coordinates {(1,1) (2,1)}[color=black];
\draw (0,0) node[left] {$0$}; \draw (0,0) node[left] {$0$};
\draw (0,1) node[left] {$1$}; \draw (0,1) node[left] {$1$};
\draw (1,-0.7) node[below] {$\omega_0$}; \draw (1,-0.7) node[below] {$\omega_0$};
@ -21,11 +21,11 @@
\draw[->] (-0.2,-0.5) -- (2.2,-0.5) node[right] {$\omega$}; \draw[->] (-0.2,-0.5) -- (2.2,-0.5) node[right] {$\omega$};
\draw[->] (0,-0.7) -- (0,2.2) node[above] {$\frac{\partial}{\partial\omega}V(x,\omega)$}; \draw[->] (0,-0.7) -- (0,2.2) node[above] {$\frac{\partial}{\partial\omega}V(x,\omega)$};
\draw (0,0) -- (2,0) plot coordinates {(0,0) (2,0)}[color=red]; \draw (0,0) -- (2,0) plot coordinates {(0,0) (2,0)}[color=black];
\draw (0,0) node[left] {$0$}; \draw (0,0) node[left] {$0$};
\draw (0,1) node[left] {$1$}; \draw (0,1) node[left] {$1$};
\draw (0,2) node[left] {$\infty$}; \draw (0,2) node[left] {$\infty$};
\draw (1,2) node[color=red] {$\bullet$}; \draw (1,2) node[color=black] {$\bullet$};
\draw (1,-0.7) node[below] {$\omega_0$}; \draw (1,-0.7) node[below] {$\omega_0$};
\end{tikzpicture} \end{tikzpicture}
} }