yinyang - Render a stand-alone Yin/Yang image




Renders a black-and-white Yin/Yang symbol optionally with "eyes" that may optionally be images.

yinyang is a Gimp plugin. It generates a Yin/Yang symbol, which is a Chinese symbol of duality. It takes as parameters (provided by the Gimp user interface) the width and height of the resulting image; a toggle to indicate if "eyes" should be inserted; a toggle to indicate if the eyes should be images that are loaded separately; the two filenames for the eyes and a toggle to indicate if anti-aliasing should be used.

The "eyes" are normally either black or white dots in the middle of the circular regions of the two halves of the Yin and Yang. If you like you can load these eyes from another image.


Here are some thoughts on how the plugin could be used:

  • Use as a low-opacity layer over an image to indicate duality or harmony.

  • Use to replace circular objects in an image (e.g. eyes, street signs, the sun, etc.)

  • Map two opposed or dualistic images. One into the black region, one into the white. For a really cool look, make the eyes show a piece of the other image.


  [PF_INT32, "width", "Width", 256],
  [PF_INT32, "height", "Height", 256],
  [PF_TOGGLE, 'do_eyes', "Insert eyes", 1],
  [PF_TOGGLE, 'eye_images', "Eyes are images", 0],
  [PF_FILE, 'white_eye_image', "Top eye filename", ""],
  [PF_FILE, 'black_eye_image', "Bottom eye filename", ""],
  [PF_TOGGLE, 'aa', "Anti-aliasing", 1]


 Written by Aaron Sherman, (c) 1998
   04-22-2001, fix problems with functions
               that changed number of arguments
   2004-03-29, fixed for Gimp-2.0


Written by Aaron Sherman <>, (c) 1998.




(c) 1998, Aaron Sherman

Distributed under unknown license terms.