winfo rgb
Gives the red, green, and blue values of a color.
winfo rgb WINDOW COLOR
Description
COLOR is a color name, such as red, or #RGB, #RRGGBB, or #RRRRGGGGBBBB. Each value is from 0 to 65535.
Returns
A list of three integers.
Examples
% winfo rgb . red
65535 0 0
% winfo rgb . #123
4369 8738 13107
Errors
% winfo rgb . nocolor
unknown color name "nocolor"
-errorcode NONE
Facts
- Capability
- None.
- Tcl release
- Tcl 9.1 and 8.6.
- Since
- ztk 1.0.0-beta.1