语法中有没有一种方法
\draw[densely dashed] (M) -- (33:\r) circle[radius=5mm];
可以表示小圆圈应该被填充(获取键“填充”)?
\documentclass[margin=5pt, tikz]{standalone}
\begin{document}
\pgfmathsetmacro{\r}{3}
\begin{tikzpicture}[
font=\footnotesize,
]
\fill[] circle(1.5pt) coordinate[label=$M$](M);
\draw[] circle[radius=\r];
\draw[densely dashed] (M) -- (33:\r) circle[radius=5mm, fill] coordinate[label=below:$$] (A);
\end{tikzpicture}
\end{document}
答案1
根据@Jasper Habicht 的评论对您的代码进行了一些小的更改:
\documentclass[margin=5pt, tikz]{standalone}
\begin{document}
\pgfmathsetmacro{\r}{3}
\begin{tikzpicture}[
font=\footnotesize,
]
\fill circle(1.5pt) coordinate[label=$M$](M);
\draw circle[radius=\r];
\pgfmathsetmacro{\angle}{33} % <---
\draw[densely dashed, fill=orange, fill opacity=0.5, text opacity=1] % <---
(\angle:\r) coordinate[label={[anchor=180+\angle]:$A$}] (aux) circle[radius=5mm] -- (M); % <---
\end{tikzpicture}
\end{document}