Username Password
Bookmark and Share

XEyes macro



XEyes macro


Using preconfigured cuteness:


Or using your own images:



This macro brings the most important software ever made by mankind from the unix playland to the omnipotent internet, allowing even windows users to enjoy the praise of hours of wasted time.

Additionally not only the original xeyes software is being emulated by crispy javascript, it allows custom faces and eyeballs to be used.


For your convenience the macro comes with three defaults:

    - xeyes: the classic xeyes
    - psycho: frantic xeyes
    - pomade: yours truly being attacke by gooey

Just pass your configuration to the macro, eg. ^XEyes(psycho);

If you do not give any configuration the macro will default to xeyes.


If you want to use a custom mugshot and/or eyeballs you'll have to do some work.

First of all the invocation is as follows:

faceUrl is the url to the face image.

eyeballUrl is the url to the eyeball image

Eyeball definitions define the area to which an eye is bounded. Such an area is an ellipse. The defintion defining this ellipse is just a bunch of semicolon seperated values, and is defined as follows:


eyeCenterX: the X position of the center of the ellipse relative to the top left corner of the face image.

eyeCenterY: the Y position of the center of the ellipse relative to the top left corner of the face image.

eyeRadiusX: the horizontal radius of the ellipse; the half of the width of the ellipse.

eyeRadiusY: the vertical radius of the ellipse; the half of the height of the ellipse.


The following invocation


has two eyes. The first eyes center is located at (37,50) relative to the image of the face, and it has an x radius of 27 pixels, and an y radius of 40 pixels. The second eye is located at (115,50) and has the same radii as the first eye.

The face is located at, the eyeball


An eyeball image can have arbitrary dimensions. The software will figure those out by itself. You should only make sure that the eyeball fits exactly in the square shaped  image.

For the background use transparency. If you use the png format, transparencies will render as black in every IE except 7. This is a bug in IE.


XEyes are especially cute and pony like if you use a lot of them. Doing this is easy: put more ^XEyes; on your page! There is a catch however.

WebGUI caches macro executions of macros with equal parameters. This has as a result that if you use more XEyes macro's on the same page with the same parameters they will
break. There is a workaround however. You can include an arbitrary number to the parameter list. If you make sure these numbers are unique all is well. Example


This also works for custom faces.


  1. Untar the archive in the directory containing your webgui root, ie. the same directory in which you untar new webgui releases.
  2. Add the macro to the config file.
  3. Restart the server.
  4. Start adding those cute eyecandys!


Check out the attached screenshots! 



    Added copyright.


System Requirements

Please be advised: this contribution was tested with something older than WebGUI 7.5. When this contribution was uploaded there was no field for the author to fill out regarding it's requirements.

DownloadXEyes-1.0.1.tar.gz XEyes-1.0.1.tar.gz
LinksNo Support Offered
ScreenshotsxeyesScreenshot.png gimmeMore.png
Statistics Downloads: 536
Views: 5752
Rating: 0
Updated: 6/15/2009
Keywords acme macros
NavigationMore from Martin Kamerbeek
Back to the Bazaar
© 2020 Plain Black Corporation | All Rights Reserved