1

In TikZ, how do you change the position of the "highlight" in the shading of a circle, such as

\documentclass{article}
\usepackage{tikz}
\begin{document}
    \tikz \shade[ball color=red] (0,0) circle (1);
\end{document} 

so that the highlight appears in the exact middle of the circle? The default position of the highlight seems to be a bit to the northwest.

Rus May
  • 111
  • 2
    Can you please show us a compilable code, not only a code snippet? – Mensch Sep 04 '17 at 17:38
  • Welcome to TeX.SX! Please make your code compilable (if possible), or at least complete it with \documentclass{...}, the required \usepackage's, \begin{document}, and \end{document}. That may seem tedious to you, but think of the extra work it represents for TeX.SX users willing to give you a hand. Help them help you: remove that one hurdle between you and a solution to your problem. – dexteritas Sep 04 '17 at 17:43
  • I added a short LaTeX file so that the code is compilable. – Rus May Sep 04 '17 at 18:20
  • see https://tex.stackexchange.com/questions/58633/how-to-create-a-ball-shading-and-to-customize-3d-lighting-manually – Michael Palmer Sep 04 '17 at 20:08
  • @MichaelPalmer That reference has everything I need (and more!) for customizing the shading of circles. Many thanks. – Rus May Sep 04 '17 at 20:38

0 Answers0