topPixel

Typeproperty
DictionaryLCS
LibraryLiveCode Script
Syntax
set the topPixel of <object> to <colorNumber>
Synonymsfifthpixel
Associationsstack, card, field, button, graphic, scrollbar, player, image
Summary

Specifies which entry in the color table is used for the color of a three-D object's raised edge.

Introduced1.0
OSmac, windows, linux, ios, android
Platformsdesktop, server, mobile
Example
set the topPixel of player "Welcome" to 1
Values
NameTypeDescription
Value

The topPixel of an object is an integer between zero and (the screenColors - 1). It designates an entry in the current color table. By default, the topPixel for all objects is empty.

RelatedKeyword: integer
Glossary: object, property, bit depth, bit, color reference, color table
Property: borderPixel, topColor
Description

Use the topPixel property to change the top color of an object when the bit depth of the screen is 8 bits (256 colors) or less.

The topPixel property specifies which entry in the color table is used for an object's top color. It is similar to the topColor property, but is specified as an entry in the current color table, rather than as a color reference.

The color table can be set by changing the colorMap property.

Tagsui