summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/tkz-base/examples/tkzBase-10.7.1.tex
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/doc/latex/tkz-base/examples/tkzBase-10.7.1.tex')
-rw-r--r--Master/texmf-dist/doc/latex/tkz-base/examples/tkzBase-10.7.1.tex25
1 files changed, 25 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/tkz-base/examples/tkzBase-10.7.1.tex b/Master/texmf-dist/doc/latex/tkz-base/examples/tkzBase-10.7.1.tex
new file mode 100644
index 00000000000..1c7e430f797
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/tkz-base/examples/tkzBase-10.7.1.tex
@@ -0,0 +1,25 @@
+\input{preamble-standalone.ltx}
+\begin{document}
+
+% Ex. No. 89 (Section 10.7.1 : Example with \tkzcname{tkzClipOutPolygon})
+
+\begin{tikzpicture}[scale=.5]
+ \tkzInit[xmin=-5,xmax=5,ymin=-5,ymax=5]
+ \pgfinterruptboundingbox
+ \tkzDefPoints{-.5/0/P1,.5/0/P2}
+ \foreach \i [count=\j from 3] in {2,...,7}{%
+ \tkzDefShiftPoint[P\i]({45*(\i-1)}:1 cm){P\j}
+ }
+ \endpgfinterruptboundingbox
+ \tkzClipOutPolygon(P1,P2,P3,P4,P5,P6,P7,P8)
+ \tkzCalcLength[cm](P1,P5)\tkzGetLength{r}
+ \begin{scope}[blend group=screen]
+ \foreach \i in {1,...,8}{%
+ \pgfmathparse{100-5*\i}
+ \tkzFillCircle[R,color=blue!%
+ \pgfmathresult](P\i,\r)
+ }
+ \end{scope}
+\end{tikzpicture}
+
+\end{document} \ No newline at end of file