February 28th, 2006
We’re Off to See the Wizard
A number of people have asked me about the origins of the
wizard who adorns my home page, and who is reproduced here in slightly smaller form. Those who have seen Abelson & Sussman’s textbook Structure and Interpretation of Computer Programs may recognize him from the line drawing that appears on the front cover of that text. The back cover of the Second Edition of SICP says only:
Cover images adapted from Le Moyen Age et la Renaissance, Paris, 1848-1851
Curious to see the original drawing, I prowled around online and in the Dartmouth College libraries, but was unable to find any reference to this book. The correct solution would probably have been to consult a reference librarian, and I suppose I would have had an easier time if I could read French, but I didn’t want to make a big production of it, and even with the able assistance of the Babelfish I was unable to make much headway. Maybe next year when we’re at Harvard, I’ll be able to find it in the collection there.
Anyway, the wizard on my home page is the result of a little amateur hackery with Photoshop. I took the front cover image from the online edition of SICP (linked above), and cropped out the male wizard. After converting the image down to greyscale, I promulgated some shameful jiggery-pokery involving histogram equalization and the Magic Eraser tool to get rid of the background, and inverted the image about the vertical axis so he would face the other direction. I’m not sure why, I just think he looks better that way.
Of course, the astute reader will have noticed that Mr. Wizard was originally a black-and-white line drawing.
I tried several strategies to add colour, before I finally settled on this one: First, I selected each separate region of the image — such as the skin, the dividers, the hat, the boots, the cloak, etc. — using the polygonal lasso tool, and I saved the selections as separate channels so I could reload them later to prevent myself from colouring outside the lines.
The diagram to the left shows what some of the selected regions looked like. To add colour, I created a new layer on top of the black-and-white original, and used a 56% translucent paintbrush in “soft light” mode to colour in each of the regions. I chose the colours by a completely unscientific process of trial-and-error, and I didn’t bother to write them down. Even if I had, it wouldn’t have mattered, since I did a lot of touchup with the brush to darken certain places, and smooth out patchy areas. You can’t write down how you waggled the mouse (yet). By adjusting the transparency of the layer where I did the colouring, and the original layer containing the line drawing, I was able to get a reasonable illusion that the colour belongs there. The first time I tried doing this, he came out kind of blotchy and fake looking. Now, at least he’s less so.
Then, I cropped out the Eval/Apply yin-yang thing, and replaced it with a mishmash of simple coloured circles with varying degrees of transparency, drop shadow, and Gaussian blur, intended to simulate some kind of crystal ball or other such wizardly apparatus. Again, I wasn’t very scientific about it, I just mucked around until it looked good to me. I briefly considered turning the whole thing into a goblet of wine, but gave it up as a bad job after a couple of painful attempts.
To get the drop shadow, I copied the bottom quarter or so of his robe into another layer, put it behind the original, and added a drop shadow effect with a long distance. It took a little tweaking with the eraser to get the shadow shaped right, but I think it came out pretty well. In fact, on a whole I think this version looks a lot better than my first several attempts, which were somewhat lame (see at left for an example). Granted, the whole exercise is a bit silly, but sometimes it’s fun to play around with things without being too precise or analytical about the whole thing. That’s one of the things I really miss about Kindergarten.
So, after all that, the answer to your question is simple: Where did I get the wizard? I copied him from the cover of the online edition of SICP and added the colour with Photoshop. I could probably have just said that up front, and saved you some time!
:-)
Filed by Michael at 23:29 under Personal
4 Comments