lock colorMap

Typecommand
DictionaryLCS
LibraryLiveCode Script
Syntax
lock colorMap
Summary

Sets the lockColorMap property to true, preventing the screen from being redrawn when the color table is changed.

Introduced1.0
OSmac, windows, linux
Platformsdesktop, server
Example
lock colorMap
if the platform is "MacOS" then lock colorMap
RelatedProperty: lockColorMap
Command: unlock colorMap, lock cursor, lock screen
Object: image
Glossary: property, redraw, undo, command, color table
Description

Use the lock colorMap command to prevent screen flashing when images and movies appear on a screen set to 256 or fewer colors.

The lock colorMap command sets the lockColorMap property to true.

When all pending handlers are finished executing, the lockColorMap property is set back to false, undoing the lock colorMap command's action.

Tagsui