| Prev | Next | Start of Chapter | End of Chapter | Contents | Glossary | Index | Comments | (3 out of 18)

Composition of an Icon

An object icon is made up of one or more overlapping layers. A layer is like a piece of transparent film with a one-color image on it. A layer contains one or more graphic elements (circles, lines, etc.) defined with the Icon Editor and/or the Text Editor.

For example, the following illustration shows an icon that has four layers, and a conceptual view of the layers from the side:


Regions

Layers can be assigned to regions. A region is a named collection of one or more layers. All layers in a region have the same color or metacolor. For information about metacolors, see Identifying the G2 Color Palette.

You can change the color of a region for a particular instance of an object class with a change action:

This action changes the color of all layers of region of the icon of object to color. The change does not affect the class default color of region; it affects only the instance. If an icon does not have any regions, the region specifier can be omitted. The action then changes the color of all layers of the icon to color.

| Prev | Next | Start of Chapter | End of Chapter | Contents | Glossary | Index | Comments | (3 out of 18)

Copyright © 1997 Gensym Corporation, Inc.