blend (Sprite)

Usage

-- Lingo syntax
spriteObjRef.blend

// JavaScript syntax
spriteObjRef.blend;

Description

Sprite property; returns or sets a sprite's blend value, from 0 to 100, corresponding to the blend values in the Sprite Properties dialog box. Read/write.

The possible colors depend on the colors available in the palette, regardless of the monitor's color depth.

For best results, use the blend ink with images that have a color depth greater than 8-bit.

Example

The following statement sets the blend value of sprite 3 to 40 percent.

-- Lingo syntax
sprite(3).blend = 40

// JavaScript syntax
sprite(3).blend = 40;

This statement displays the blend value of sprite 3 in the Message window:

-- Lingo syntax
put(sprite(3).blend)

// JavaScript syntax
put(sprite(3).blend);

See also

blendLevel, Sprite