答案1
这是我尝试绘制在 Google 图片上看到的最复杂的一个。
\documentclass[tikz]{standalone}
\pgfdeclarefunctionalshading{Laguerre-Gaussian modes}{\pgfpoint{-25bp}{-25bp}}{\pgfpoint{25bp}{25bp}}{}{
% x y
2 copy % x y x y
exch atan % x y theta
4 mul % x y 4theta
cos % x y cos(4theta)
dup mul % x y cos^2(4theta)
3 1 roll % cos^2(4theta) x y
dup mul exch dup mul
add sqrt % cos^2(4theta) r
20 mul % cos^2(4theta) 20r
90 add % cos^2(4theta) 20r+90
cos dup mul % cos^2(4theta) cos(20r+90)
mul % cos^2(4theta)*cos(20r+90)
sqrt
}
\begin{document}
\tikz\path[shading=Laguerre-Gaussian modes](-10,-10)rectangle(10,10);
\end{document}