| SelectColor | |
| Comments | |
| Arguments | |
| Used by | |
| Uses | |
Widget::declare SelectColor { |
|
| SelectColor::_draw_values | |
| Comments | |
| Arguments | hue sat |
| Used by | |
| Uses | |
proc SelectColor::_draw_values {hue sat} { |
|
| SelectColor::_select_hue_sat | |
| Comments | |
| Arguments | x y |
| Used by | |
| Uses | |
proc SelectColor::_select_hue_sat {x y} { |
|
| SelectColor::_select_rgb | |
| Comments | |
| Arguments | count |
| Used by | |
| Uses | |
proc SelectColor::_select_rgb {count} { |
|
| SelectColor::_select_value | |
| Comments | |
| Arguments | x y |
| Used by | |
| Uses | |
proc SelectColor::_select_value {x y} { |
|
| SelectColor::_set_hue_sat | |
| Comments | |
| Arguments | hue sat |
| Used by | |
| Uses | |
proc SelectColor::_set_hue_sat {hue sat} { |
|
| SelectColor::_set_rgb | |
| Comments | |
| Arguments | rgb |
| Used by | |
| Uses | |
proc SelectColor::_set_rgb {rgb} { |
|
| SelectColor::_set_value | |
| Comments | |
| Arguments | value |
| Used by | |
| Uses | |
proc SelectColor::_set_value {value} { |
|
| SelectColor::dialog | |
| Comments | |
| Arguments | path args |
| Used by | |
| Uses | Dialog::create Widget::cget Widget::init BWidget::getname |
proc SelectColor::dialog {path args} { |
|
| SelectColor::hsvToRgb | |
| Comments | -- Taken from tk8.0/demos/tcolor.tcl -- The procedure below converts an HSB value to RGB. It takes hue, saturation, and value components (floating-point, 0-1.0) as arguments, and returns a list containing RGB components (integers, 0-65535) as result. The code here is a copy of the code on page 616 of "Fundamentals of Interactive Computer Graphics" by Foley and Van Dam. |
| Arguments | hue sat val |
| Used by | |
| Uses | |
proc SelectColor::hsvToRgb {hue sat val} { |
|
| SelectColor::menu | |
| Comments | |
| Arguments | path placement args |
| Used by | |
| Uses | Bitmap::get BWidget::place Widget::destroy BWidget::grab Widget::init |
proc SelectColor::menu {path placement args} { |
|
| SelectColor::rgbToHsv | |
| Comments | -- Taken from tk8.0/demos/tcolor.tcl -- The procedure below converts an RGB value to HSB. It takes red, green, and blue components (0-65535) as arguments, and returns a list containing HSB components (floating-point, 0-1) as result. The code here is a copy of the code on page 615 of "Fundamentals of Interactive Computer Graphics" by Foley and Van Dam. |
| Arguments | red green blue |
| Used by | |
| Uses | |
proc SelectColor::rgbToHsv {red green blue} { |
|