我想绘制下图。该怎么做?
答案1
您可以制作图像
使用
\documentclass[border=5mm,tikz]{standalone}
\usepackage{tikz}
\usetikzlibrary{fadings}
\tikzfading[name=fade out, inner color=transparent!0, outer color=transparent!100]
\begin{document}
\begin{tikzpicture}[scale=0.4]
\draw[draw=magenta!60, line width=2pt, fill=yellow](0,0) rectangle (2,2);
\fill [green,path fading=fade out] (0,0) rectangle (2,2);
\node[magenta] at (1,1) {\fontfamily{pzc}\selectfont HK};
\end{tikzpicture}
\end{document}
字体由评论中的真实 HK 提供。
答案2
这是您的不同头像。希望您会喜欢。
\documentclass{standalone}
\usepackage[utf8]{inputenc}
\usepackage[upright]{fourier}
\usepackage[usenames,dvipsnames]{xcolor}
\usepackage{fullpage,amsmath,tkz-euclide}
\usetkzobj{all}
\definecolor{fondpaille}{cmyk}{0,0,0.1,0}
\pagecolor{fondpaille}
\color{Maroon}
\tkzSetUpColors[background=fondpaille,text=Maroon]
\thispagestyle{empty}
\begin{document}
% from a figure d'O Reboux with pst-eucl ( D Rodriguez )
\begin{tikzpicture}[line width=0.8pt]
\tkzInit[xmin=-6,ymin=-6,xmax=6,ymax=6]
\tkzClip
\tkzDefPoint(0,0){O}
\tkzDefPoint(132:4){A}
\tkzDefPoint(5,0){B}
\foreach \ang in {5,10,...,360}{%
\tkzDefPoint(\ang:5){M}
\tkzDefLine[mediator](A,M) \tkzGetPoints{i}{j}
\tkzDrawLine[color=magenta,add= 4 and 4](i,j)}
\node[scale=5,font=\fontfamily{pzc}\selectfont] at (-2.5,2.1) {Qi};
\node[scale=5,font=\fontfamily{pzc}\selectfont] at (-1,0.75) {Wei};
\end{tikzpicture}
\end{document}
答案3
\documentclass[pstricks]{standalone}
\usepackage{pst-slpe}
\begin{document}
\begin{pspicture}(2,2)
\pscircle[dimen=i,fillstyle=ccslope,slopebegin=green,slopeend=yellow](1,1){!2 sqrt}
\rput(1,1){\color{magenta!60}\huge$\mathcal{HK}$}
\psframe[linecolor=magenta!60,linewidth=2pt](2,2)
\end{pspicture}
\end{document}