[Tex/LaTex] Progressively filled circles

circlesiconsymbols

I'd like to implement icons like those in the figure below to denote, for instance, the level of satisfaction of a certain requirement.

enter image description here

I didn't find such icons in any icon pack. I also tried \mathrel but the circles are not perfectly concentric at the end. How can i solve?

Moreover, is there a way to create them deciding the ratio between the black circle and the white one?

Thank you in advance.

Best Answer

Package-free approach:

mwe

\documentclass{article}
\setlength{\unitlength}{1em}
\newcommand\like[1]{\begin{picture}(1,1)
\ifnum0=#1\put(.5,.35){\circle{1}}\else
\ifnum10=#1\put(.5,.35){\circle*{1}}\else
\put(.5,.35){\circle{1}}\put(.5,.35){\circle*{.#1}}
\fi\fi\end{picture}}

\begin{document}
I hate it \like{0} \like{1} \like{2} \like{3} \like{4} \like{5} 
\like{6} \like{7} \like{8} \like{9} \like{10}  I love it
\end{document}
Related Question