\documentclass[svgnames]{standalone} \usepackage{tikz, verbatim} \usetikzlibrary{backgrounds, shapes} % Definición de Colores \definecolor{Fire Engine Red}{HTML}{CF142B}% Definición de Dimensiones \def\alto{60} \def\largo{1.5*\alto} % Definición del estilo de la estrella \tikzstyle{estelar}=[star, star point ratio=2.61, minimum size=0.05*\alto cm, fill=Fire Engine Red, rotate=25] % Definición del pétalo \def\petalo#1{ \begin{scope}[rotate={#1}] \draw[Fire Engine Red, fill=White, line width=15pt] (0.3*\alto, 0) arc (0:180:0.15*\alto) [out=45, in=135] to (0.116*\alto, 0) [out=-45, in=-135] to (0.216*\alto, 0) [out=45, in=135] to (0.3*\alto, 0); \draw[Fire Engine Red, out=65, in=160, line width=6pt] (0:0) to (25:\alto/6); % Arco que une el centro de la flor con la estrella en cada pétalo \end{scope} } \begin{document} \scalebox{0.5}{ \begin{tikzpicture} \foreach \i in{1, ..., 5}{ \petalo{4+72*\i} \node[estelar] at (23+72*\i:11){}; } \begin{scope}[on background layer] \draw[fill=Fire Engine Red] (-0.5*\largo, -0.5*\alto) rectangle (0.5*\largo, 0.5*\alto); \end{scope} % Remueva el símbolo de comentarios, para comprobar la geometría de la orquídea %\draw[Blue, line width=1ex] % (0, 0) circle (0.183*\alto) % (0, 0) circle (0.3*\alto) % (-0.5*\largo, 0) -- (0.5*\largo, 0) % (0, -0.5*\alto, 0) -- (0, 0.5*\alto, 0) % (0, 0) -- (76.2:18); \end{tikzpicture} } \end{document}
效果图如下:选自:https://www.overleaf.com/articles/bandera-de-hong-kong/jdcxchbpwpvw#.WBSmXPn7xSU
发表评论 取消回复