Go to: Synopsis. Return value. Flags. MEL examples.
grabColor [-hsvValue] [-rgbValue]
grabColor is undoable, NOT queryable, and NOT editable.
This command changes the cursor and enters a modal state which will be exited by pressing a mouse button. The color component values of the pixel below the cursor at the time of the button press are returned.
float | []
Three float values representing the color components of the pixel below the cursor. If no flags are specified then the default is to return the red, green and blue color components. |
Long name (short name) | Argument types | Properties | ||
---|---|---|---|---|
-hsvValue(-hsv)
|
|
![]() |
||
|
||||
-rgbValue(-rgb)
|
|
![]() |
||
|
![]() |
![]() |
![]() |
![]() |
grabColor; grabColor -hsv; float $color[] = `grabColor -rgbValue`;