summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/tkz/tkz-euclide/examples/tkzEuclide-18-5-1.tex
blob: be38a5cd004e7676515accaf800a47b5533e398e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
\input{preamble-standalone.ltx}
\begin{document}

% Ex. No. 113 (Section 18.5.1 : Golden Rectangles)

\begin{tikzpicture}[scale=.6]
 \tkzDefPoint(0,0){A}      \tkzDefPoint(8,0){B}
 \tkzDefGoldRectangle(A,B) \tkzGetPoints{C}{D}
 \tkzDefGoldRectangle(B,C) \tkzGetPoints{E}{F}
 \tkzDrawPolygon[color=red,fill=red!20](A,B,C,D)
 \tkzDrawPolygon[color=blue,fill=blue!20](B,C,E,F)
\end{tikzpicture}

\end{document}