\pgfkeyscurrentkey 定义中的参数编号非法。... fill=#2!#3, inner sep=0pt, outer sep=0pt}}

\pgfkeyscurrentkey 定义中的参数编号非法。... fill=#2!#3, inner sep=0pt, outer sep=0pt}}

根据@percusse的回答这里,我试图定义\tikzstyle如下的多参数

\documentclass[tikz]{standalone}

\begin{document}
    \begin{tikzpicture}
    \tikzset{mystyle/.style n args{3}{circle, minimum size=#1 cm, draw=#2, fill=#2!#3, inner sep=0pt, outer sep=0pt}}
    
    \node[mystyle={1}{red}{70}] (mynode) {};
    
    \end{tikzpicture}
\end{document}

但我收到以下错误:

Illegal parameter number in definition of \pgfkeyscurrentkey. ... fill=#2!#3, inner sep=0pt, outer sep=0pt}}

这里有什么问题?

相关内容