documentclass[border=1.2cm]{standalone}
usepackage{tkz-euclide}
usetikzlibrary{calc}
begin{document}
\begin{tikzpicture}
\tkzDefPoint(0,0){O}
\tkzDefPoint(0:4){A}
\tkzDefPoint(60:4){B}
\tkzDefPoint(120:4){C}
\tkzDefPoint(180:4){D}
\tkzDefPoint(240:4){E}
\tkzDefPoint(300:4){F}
\filldraw[blue](B) arc[start angle=120,end angle=240,radius=4cm]--(F)arc[start angle=0,end angle=120,radius=4cm]--(D) arc[start angle=240,end angle=360,radius=4cm] ;
\filldraw[blue](A) arc[start angle=60,end angle=180,radius=4cm]--(E) arc[start angle=-60,end angle=60,radius=4cm]--(C) arc[start angle=180,end angle=300,radius=4cm];
% \tkzDrawPoints(O,A,B,C,D,E,F)
\end{tikzpicture}
end{document}
我更喜欢纯Tikz
的画法。
\documentclass[border=2pt,tikz]{standalone}
\begin{document}
\begin{tikzpicture}
\fill [black]
(60:1cm) arc (120:240:1cm)
arc (0:120:1cm)
arc (-120:0:1cm) -- cycle;
\fill [black,rotate=60]
(60:1cm) arc (120:240:1cm)
arc (0:120:1cm)
arc (-120:0:1cm) -- cycle;
\end{tikzpicture}
\end{document}
你应该使用围栏代码块让你的所有代码都高亮,而不只是缩进的部分...