Tag Archives: images

Processing & Baba Yaga: Part 5

This time, the chicken legs move if you use the live version in OpenProcessing.org: a, s, d control the left leg; j, k, l control the right. Here’s a picture of part of the code:

And here are two versions of the result:

And there you have it. Baba’s hut is doing The Chicken Dance.

Tagged , , , , , ,

Processing & Baba Yaga: Part 4

Okay, part four of our Processing saga may seem a little funny, because it’s all about using images and text in Processing. This, of course, is the sort of thing that one would normally do in Photoshop. However, we did it in our Processing class because:

  1. It was the next chapter in the book Getting Started with Processing
  2. Although these sketches are static, it is also possible to make them dynamic and interactive (which we will demonstrate shortly), as well as data-driven (which we also hope to do at a later date)
  3. Really, we did it because we could
And there you have it. Anyhow, here’s the code for my image/text version of the Baba Yaga hut. I should mention, however, that this code also refers to image and font files that are stored in a data folder with the sketch, but I’m not going to show those here.
And here’s the resulting image:
Cute, huh? And, if you want, you can run the code yourself at OpenProcessing.org by clicking here. Enjoy!
Tagged , , , , ,

Oh, the Things You Can Do in Preview

Most of us know that Macs are handy for working with images. However, you don’t have to have Photoshop installed to do a lot of basic (and not-so-basic) image manipulation. Instead, the Preview program that comes with Macs and that most people associate with simply viewing PDFs or images, can do a whole lot more than that. For example, here are a few screenshots from when I was working on a photo of chicken legs (whose purpose will become apparent at a later date).

In the first shot, you can see the palette for color adjustments. (You get it by going in the menu bar to Tools > Adjust Color…)

Cool! Next, you can adjust the size and resolution of photos by going to Tools > Adjust Size…, like this:

That brings up the following dialog box, which lets you do all sorts of nifty things:

Quick and easy and no extra software required! Preview has other lovely features, too, like letting you add or delete pages from PDFs, crop pages, annotate, or even add your signature. Very nice!

Tagged , , , , , ,