Livecode Wiki
Advertisement

addMax Specifies one of the transfer modes that can be used with the ink property.

Examples:

set the ink of button "Click Here" to addMax

Use the addMax keyword to "wash out" the area under an object.

The ink property determines how an object's colors combine with the colors of the pixels underneath the object to control how the object's color is displayed. When the addMax mode is used, each component of the object colo (red, green, and blue) is compared with the corresponding component of the color underneath, and the maximum of each is used for the displayed color.

For example, suppose an object's color is 30,70,150, and the color of the pixels under the object is 60,40,100. If the addMax mode is used, the object's displayed color is 60,70,150.

The addMax mode can be used only on Mac OS systems. On Unix and Windows systems, objects whose ink property is set to this mode appear as though their ink were set to srcCopy.

A list of all transfer modes can be found in the transfer mode glossary page for easy reference.

See also: srcCopy, notSrcCopy

Advertisement