8 Advanced Graphics and Animation

Sketch 61: Layering

One of the key features of modern graphics programs like Photoshop is the idea of layers. That’s the creation of a set of graphical objects (images) that are placed on top of each other to achieve a complex effect. Transparency makes it possible to see objects on lower layers. This sketch uses three layers: an image of the moon, a circle around a crater, and a targeting display (reticle). Using the keyboard, the user can reposition the moon image. The goal of the interface is to allow the user to align the reticle with the target circle.

Drawing inside the sketch window involves using ...

Get An Artist's Guide to Programming now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.