다른 위치에 그라데이션으로 채워진 여러 개의 큰 화살표를 그리고 싶습니다. 어떻게 그렇게 하시겠습니까?
나는 tikz와 latex를 처음 접했고 다음과 같은 (추악한) 해결책을 찾았습니다.
\def\y{0.4}
\def\x{0.2}
\newcommand\verticalarrow[2]{
(0,0) -- (#1,0) -- (#1,#2-\y) -- (#1+\x,#2-\y) -- (#1/2,#2) --
(-\x,#2-\y) -- (0,#2-\y) -- (0,0)
}
\draw[bottom color=white, top color=gray, very thin] \verticalarrow{0.15}{4};
복잡해서 지금은 화살의 위치를 어떻게 찾는지 모르겠습니다...
답변1
나는 도서관에서 제공하는 모양을 \node
사용 하겠습니다 . 모양은 매우 유연하게 조정할 수 있습니다.single arrow
shapes.arrows
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{shapes.arrows, fadings}
\begin{document}
\begin{tikzpicture}[every node/.append style={draw=gray, left color=white, single arrow}]
\node [
right color=orange,
single arrow,
minimum height=1cm
] {};
\node at (0,-1) [
right color=blue!50!cyan,
single arrow,
minimum height=1cm,
shading angle=90+60,
rotate=60
] {};
\node at (1,0) [
right color=red!80!black,
single arrow,
single arrow head extend=0.4cm,
single arrow tip angle=110,
single arrow head indent=0.1cm,
minimum height=2cm,
inner sep=1pt,
shading angle=90+90,
rotate=90
] {};
\end{tikzpicture}
\end{document}