# Mixing colours for a symbol

Assuming we have a symbol like a volleyball symbol. In LaTeX is it possible to have a mixture of colors (I do not know if the technical term is texture) of various types that fill a symbol making it of different colors, shades and opacity?

\documentclass[a4paper,12pt]{article}
\usepackage{fontawesome5}
\begin{document}
\faVolleyballBall
\end{document}

• It is a single glyph from the font, so it is not possible to change its color partially, except you make a lot of tricks to clip the symbol and superpose some others. – Sigur Aug 19 at 20:00
• @Sigur I'm sorry for the question that may seem trivial but it was my curiosity and I wanted to insert a question. – Sebastiano Aug 19 at 20:05
• Can this answer inspire you? : tex.stackexchange.com/a/192990/31034 – ferahfeza Aug 19 at 20:28
• @ferahfeza Very nice the word "inspire" that you have used :-). The answer of esdd is very good. But how is possible adapt it? – Sebastiano Aug 19 at 20:33
• @Sebastiano, it is from Google Translate :-). The adaptation is given by Schrödinger's cat in his/her answer. – ferahfeza Aug 19 at 20:42

Depends on what you mean precisely by "mixture of colors". You can use a path fading (cf. this answer) to e.g. achieve

\documentclass{article}
\usepackage{tikz}
\usepackage{fontawesome5}
\node[transparent!0] {#2};
\tikz[baseline=(X.base)]{\node[inner sep=0pt,outer sep=0pt] (X)
{\phantom{#2}};
(X.north east);}%
}
\begin{document}

\node[transparent!0] {\faVolleyballBall};
\tikz[baseline=(X.base)]{\node[inner sep=0pt,outer sep=0pt] (X)
{\phantom{\faVolleyballBall}};

• @Sebastiano That user would probably have shortened the second example to \begin{tikzfadingfrompicture}[name=temp] \node[transparent!0] {\faVolleyballBall}; \end{tikzfadingfrompicture}% \tikz[baseline=(X.base)]{\node[inner sep=0pt,outer sep=0pt] (X) {\phantom{\faVolleyballBall}}; \foreach \X [count=\Y starting from 0] in {red,blue,green!70!black} { \path[path fading=temp,fit fading=false,overlay,fill=\X] (\Y*120:1em) arc(\Y*120:\Y*120+120:1em) to[bend left=20] (0,0) to[bend right=20] cycle;} }. – Schrödinger's cat Aug 19 at 21:51