In this last section, we will explore a number of objects to tackle some common interactive art/design situations. Most of them involve more advanced knowledge of the GEM library.
In a lot of design scenarios, we have a background image, instead of just the black background. In this case, we can use two gemhead
objects, one for the background and the other for the foreground graphics. The gemhead
object has a parameter to determine its render order.
If you have multiple gemhead
objects in your patch, the render order depends on its render number, that is the number parameter in its specification. The default number is 50. The higher the number, the later it renders. In this example, the gemhead
object with 50 renders first. The gemhead
object with 55 renders later. In effect, the gemhead
object 50 will be in the back, as a background layer. The gemhead
object 55 will be in the front, as a foreground layer.