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

% Ex. No. 131 (Section 17.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}