Error getting tags :
error 404Error getting tags :
error 404 mouseColor | revDocs | RunRev
Welcome Guest (Log in)
Product Edition
Version
mouseColor
Basics
Expander triangle
Type
Function
Syntax
the mouseColor mouseColor()
Introduced
1.0
Environment
Desktop, Web and Server
Platform Support
MacOS,Mac OS X,Windows,Linux
Security
None required
Summary
Returns the color of the pixel that the mouse pointer is over.
Examples

the mouseColor
set the foregroundColor of graphic 1 to the mouseColor

Additional Comments
Expander triangle

Use the mouseColor function to find out what color the mouse is over or to select a color from the screen.

Value:

The mouseColor function returns a color reference consisting of three integers between zero and 255, separated by commas.

Comments:

The mouseColor is the color of the single pixel under the mouse pointer's hot spot. The hot spot is the active point of the cursor. For example, the arrow cursor's hot spot is at its tip, and to select an object, you must click it with the arrow tip.

The value returned by the mouseColor consists of three comma-separated numbers between zero and 255, specifying the level of each of red, green, and blue.

User Comments
Expander triangle