Lá cờ Việt Nam
Forfatter
Nguyen Thai Son
Sidst opdateret
10 år siden
Licens
Other (as stated in the work)
Resumé
Code vẽ lá cờ Việt Nam dành cho SV ngành Toán ĐHSP để dạy lại cho học sinh cách vẽ lá cờ này.
\documentclass{article}
\usepackage{tkz-euclide}
\usetkzobj{all}
\usepackage[top=0cm,bottom=0cm,left=-.55cm,right=0cm,
paperwidth=15cm,paperheight=10.025cm]{geometry}
\begin{document}
\begin{tikzpicture}[scale=.6]
\tkzInit[xmin=-10,xmax=10,ymin=-10,ymax=10]
\tkzDefPoint(0,0){O}
\tkzDefPoint(5,0){A}
\tkzDefPoint(0,-5){B}
\tkzDefPoint(-5,0){C}
\tkzDefPoint(0,5){D}
\tkzDefPoint(12.5,8.333){X}
\tkzDefPoint(12.5,-8.333){Y}
\tkzDefPoint(-12.5,-8.333){Z}
\tkzDefPoint(-12.5,8.333){T}
\tkzDefMidPoint(A,O) \tkzGetPoint{I}
\tkzInterLC(I,B)(I,A) \tkzGetPoints{F}{E}
\tkzInterCC(O,C)(B,E) \tkzGetPoints{D3}{D2}
\tkzInterCC(O,C)(B,F) \tkzGetPoints{D4}{D1}
\tkzInterLL(D,D3)(D2,D4) \tkzGetPoint{M}
\tkzInterLL(D,D3)(D1,D4) \tkzGetPoint{N}
\tkzInterLL(D,D2)(D1,D3) \tkzGetPoint{P}
\tkzInterLL(D,D2)(D1,D4) \tkzGetPoint{Q}
\tkzInterLL(B,D)(D1,D3) \tkzGetPoint{R}
\tkzDrawPolygon[color=red](X,Y,Z,T)
\tkzFillPolygon[color=red](X,Y,Z,T)
\tkzDrawPolygon[color=yellow](D,N,D4,M,D3,R,D2,P,D1,Q,D)
\tkzFillPolygon[color=yellow](D,N,D4,M,D3,R,D2,P,D1,Q,D)
\end{tikzpicture}
\end{document}