TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I would like to insert a stripey ball in TikZ, i.e. a filled-in circle that looks like this one. Would you know a clever solution for doing that?

stripy ball

share|improve this question
Welcome to TeX.SX! I added your image for you. When you get a bit more reputation you will be able to add them yourself. – Alan Munn Mar 18 '11 at 1:25
Thank you, Alan! – Thanos D. Papaïoannou Mar 18 '11 at 1:44
up vote 8 down vote accepted

You can declare a pattern and then apply it to the circle. This is quite easy to do, but you need to know the PGF commands for generating graphics. See section 78 ”Patterns” in the manual (v2.10).



    \filldraw[pattern=stripes, pattern color=black!60]
        (0,0) circle[radius=1cm];

result in Acrobat

Every tile in the pattern looks like tile.

The unfortunate disadvantage of patterns is that they are not always rendered correctly. For example, there might be small white stripes where the boxes of the patters border. The picture above was taken with Adobe Acrobat at 125% zoom level. Evince renders it the following way (it seems to rasterize the pattern, hence the fuzziness):

result in Evince

share|improve this answer
Brilliant, dear Caramdir, thanks! This works without a hitch on my machine when I change “(0,0) circle[radius=1cm];” to “(0,0) circle (1cm);”. – Thanos D. Papaïoannou Mar 18 '11 at 13:43
@Thanos: the [radius=...] notation seems to be the preferred way to draw circles in version 2.10 of TikZ (but might not be available in older versions). – Caramdir Apr 3 '11 at 2:39
Funny, those small stripes vanish (in evince) when I do the same with 0.5cm wide stripes. I guess you can fix those gaps by simply drawing one of the pieces a tad bigger. – Raphael Jun 21 '12 at 14:02

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.