答案1
我提前为无法使用这些字符道歉。所以我假设您知道如何使用它们(以及它们的含义)。这个答案只是创建了一个拉丁字符和阿拉伯数字的数组。因此,您可能需要根据\lstchar
自己的需要重新定义。
\documentclass[tikz,border=3.14mm]{standalone}
\begin{document}
\begin{tikzpicture}[font=\sffamily]
\def\lstchar{{"a", "b", "c", "d", "e", "f", "g", "h", "i", "j",
"k", "l", "m", "n", "o", "p", "q", "r", "s", "t",
"u", "v", "w", "x", "y", "z", "A", "B", "C", "D",
"E", "F", "G", "H", "I", "J", "K", "L", "M", "N",
"O", "P", "Q", "R", "S", "T", "U", "V", "W", "X",
"Y", "Z", "0", "1", "2", "3", "4", "5", "6", "7",
"8", "9", "+", "-"}}
\foreach \Z [evaluate=\Z as \Y using {int(\Z/8)},
evaluate=\Z as \X using {int(mod(\Z,8))}]
in {0,1,2,...,63}
{
\pgfmathtruncatemacro{\x}{mod(\Z,4)*255/3}
\pgfmathtruncatemacro{\y}{mod(int(\Z/4),4)*255/3}
\pgfmathtruncatemacro{\z}{mod(int(\Z/16),4)*255/3}
\pgfmathsetmacro{\char}{\lstchar[\Z]}
\definecolor{mycolor\Z}{RGB}{\z,\y,\x}
\node[color=mycolor\Z,rotate={\Z*(360/64)-90},scale=1.5] at ({\Z*(360/64)}:7) {\char};
\node[color=mycolor\Z,scale=1.5] at (\X-4+0.5,4-\Y-0.5) {\char};
}
\end{tikzpicture}
\end{document}