I want to add some opacity to draw several angles but the arrowheads (-latex
and -stealth
) are modified with fill opacity
option. At the moment, I'm re-drawing all angles twice, with fill options and without, to keep the arrow heads plain.
First : How can I keep the arrowheads without transparency ?
Second : With -latex
arrowheads the filled area and the draw lines do not match anymore. There is a small blank between them.
These issues still remain with arrow
and arrows.meta
libraries.
Here a MWE :
\documentclass{standalone}
\usepackage{tikz}
\usetikzlibrary{angles, quotes, positioning, calc}
\begin{document}
\begin{tikzpicture}[line width=0.8pt]
\pgfmathsetmacro{\r}{4}
\pgfmathsetmacro{\A}{80}
\pgfmathsetmacro{\B}{150}
\draw[-stealth, line width=0.4pt] (-\r-0.6,0) -- (\r+0.65,0) coordinate[label=above left:x] (X) ;
\draw[-stealth, line width=0.4pt] (0,-\r-0.6) -- (0,\r+0.65) coordinate[label=below right:y] (Y) ;
\draw (\r,-1.85*\r) -- (\r,1.85*\r);
\draw (0,0) coordinate (O) circle(\r);
%% Valeurs d'angles
\coordinate (A) at (\A:\r);
\coordinate (B) at (\B:\r);
%% Représentation des angles
\pic["$\beta$", draw, blue, fill=blue!30, angle eccentricity=1.7, angle radius=0.4cm, -stealth, pic text options={xshift=-13pt}] {angle=X--O--B};
\pic["$\alpha$", draw, teal!70!black, fill=black!30, fill opacity=0.6, angle eccentricity=1.5, angle radius=0.7cm, -latex, pic text options={text opacity=1}] {angle=X--O--A};
\draw (O) -- (A.center);
\draw (O) -- (B.center);
\draw[-stealth, line width=0.4pt] (0,0) -- (X);
\end{tikzpicture}
\end{document}