Replace lame TikZ pictures
This commit is contained in:
parent
6b5656d352
commit
c855a0804c
23
demo.tex
23
demo.tex
|
@ -91,11 +91,28 @@ text, \alert{accent} parts or show \textbf{bold} results.
|
||||||
\end{frame}
|
\end{frame}
|
||||||
\begin{frame}{Figures}
|
\begin{frame}{Figures}
|
||||||
\begin{figure}
|
\begin{figure}
|
||||||
|
\newcounter{density}
|
||||||
|
\setcounter{density}{20}
|
||||||
\begin{tikzpicture}
|
\begin{tikzpicture}
|
||||||
\node[circle, draw=black] at (0, 0) {foo};
|
\def\couleur{mLightBrown}
|
||||||
\node[rectangle, draw=black] at (2, 0) {bar};
|
\path[coordinate] (0,0) coordinate(A)
|
||||||
|
++( 90:5cm) coordinate(B)
|
||||||
|
++(0:5cm) coordinate(C)
|
||||||
|
++(-90:5cm) coordinate(D);
|
||||||
|
\draw[fill=\couleur!\thedensity] (A) -- (B) -- (C) --(D) -- cycle;
|
||||||
|
\foreach \x in {1,...,40}{%
|
||||||
|
\pgfmathsetcounter{density}{\thedensity+20}
|
||||||
|
\setcounter{density}{\thedensity}
|
||||||
|
\path[coordinate] coordinate(X) at (A){};
|
||||||
|
\path[coordinate] (A) -- (B) coordinate[pos=.10](A)
|
||||||
|
-- (C) coordinate[pos=.10](B)
|
||||||
|
-- (D) coordinate[pos=.10](C)
|
||||||
|
-- (X) coordinate[pos=.10](D);
|
||||||
|
\draw[fill=\couleur!\thedensity] (A)--(B)--(C)-- (D) -- cycle;
|
||||||
|
}
|
||||||
\end{tikzpicture}
|
\end{tikzpicture}
|
||||||
\caption{A circle and a rectangle.}
|
\caption{Rotated square from
|
||||||
|
\href{http://www.texample.net/tikz/examples/rotated-polygons/}{texample.net}.}
|
||||||
\end{figure}
|
\end{figure}
|
||||||
\end{frame}
|
\end{frame}
|
||||||
\begin{frame}{Tables}
|
\begin{frame}{Tables}
|
||||||
|
|
Loading…
Reference in New Issue