Using PSTricks to draw the Olympics Rings

The other day I ran into a person who’s asking people to draw the five Olympics rings by writing latex source codes only. I said, well, I could do that, using pstricks, which was my favorite drawing tool in latex.

After inspecting the Olympics logo for a while, I had a rough idea how to draw it. The key was to draw the five rings in the order: blue, yellow, black, green, and red. For each ring, draw a circle at that color with a certain line width, and then surround the circle with two white slim circles. This gave the salient pattern of the five rings and at the intersection of two rings some whites. The rest of the job was to make the interleaving effect of the five rings instead of seeing the yellow ring placed above the blue ring and so on. The trick was, after drawing the blue and the yellow rings, draw a blue arc at the place where the blue should be on top of the yellow at one of the intersection of the two rings. For the rest of the rings, do the same trick. Drawing the arcs was almost the same as drawing the rings (a colored circle squeezed by two slim white circles), except that an arc was part of a circle from some degree to some degree.

Okay, enough explanation. Here are the pstricks codes.

% This file draws the Olympic rings using PSTricks.
% File name: rings.tex
% Compile:
%  $ latex rings
%  $ dvips rings -E -o rings.eps
%  $ eps2png -width 600 rings.eps










And this is the result:

Oh, by the way, remember the day this post was initialized, Aug 8, 2008. It’s the day for which we Chinese have been dreaming for years.


4 Responses to “Using PSTricks to draw the Olympics Rings”

  1. 1 Kjell Magne Fauske August 15, 2008 at 7:03 am


    You have a really nice blog with many interesting and useful examples! I am currently collecting feeds for a TeX-related feed aggregator:

    Can I add your feed to aggregator?

    Kjell Magne Fauske

  2. 2 Jie August 15, 2008 at 11:43 am

    Yes, that will be a great idea. I do not update the blog too often, and I did not expect many people reading the entries here, though I really think some posts are interesting and helpful. So go ahead. I enjoy a back-link for my blog 🙂


  3. 3 Kjell Magne Fauske August 15, 2008 at 12:16 pm

    Thank you Jie. I have now added your feed. I hope that it will lead to more visits to your site. Keep on blogging!

    Note. Only post in the latex category will be added.

    Kjell Magne Fauske

  4. 4 sandrar September 10, 2009 at 6:07 pm

    Hi! I was surfing and found your blog post… nice! I love your blog. 🙂 Cheers! Sandra. R.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s


Blog Stats

  • 264,576 hits

%d bloggers like this: