1465 #( |
1465 #( |
1466 #(#MenuItem |
1466 #(#MenuItem |
1467 #label: 'Add Color' |
1467 #label: 'Add Color' |
1468 #translateLabel: true |
1468 #translateLabel: true |
1469 #value: #addColorToColormap |
1469 #value: #addColorToColormap |
|
1470 #enabled: #hasColormap |
1470 ) |
1471 ) |
1471 #(#MenuItem |
1472 #(#MenuItem |
1472 #label: 'Pick and Add Color' |
1473 #label: 'Pick and Add Color' |
1473 #translateLabel: true |
1474 #translateLabel: true |
1474 #value: #pickAndAddColorToColormap |
1475 #value: #pickAndAddColorToColormap |
|
1476 #enabled: #hasColormap |
1475 ) |
1477 ) |
1476 #(#MenuItem |
1478 #(#MenuItem |
1477 #label: '-' |
1479 #label: '-' |
1478 ) |
1480 ) |
1479 #(#MenuItem |
1481 #(#MenuItem |
1480 #label: 'Darker' |
1482 #label: 'Darker' |
1481 #translateLabel: true |
1483 #translateLabel: true |
1482 #value: #makeSelectedColorDarker |
1484 #value: #makeSelectedColorDarker |
|
1485 #enabled: #hasColormap |
1483 ) |
1486 ) |
1484 #(#MenuItem |
1487 #(#MenuItem |
1485 #label: 'Brighter' |
1488 #label: 'Brighter' |
1486 #translateLabel: true |
1489 #translateLabel: true |
1487 #value: #makeSelectedColorBrighter |
1490 #value: #makeSelectedColorBrighter |
|
1491 #enabled: #hasColormap |
1488 ) |
1492 ) |
1489 #(#MenuItem |
1493 #(#MenuItem |
1490 #label: '-' |
1494 #label: '-' |
1491 ) |
1495 ) |
1492 #(#MenuItem |
1496 #(#MenuItem |
1493 #label: 'Inspect Color' |
1497 #label: 'Inspect Color' |
1494 #translateLabel: true |
1498 #translateLabel: true |
1495 #value: #inspectColor |
1499 #value: #inspectColor |
1496 ) |
1500 #enabled: #hasColormap |
1497 "/ #(#MenuItem |
1501 ) |
1498 "/ #label: 'Make Brighter' |
|
1499 "/ #translateLabel: true |
|
1500 "/ #value: #makeSelectedColorBrighter |
|
1501 "/ ) |
|
1502 "/ #(#MenuItem |
|
1503 "/ #label: 'Make Darker' |
|
1504 "/ #translateLabel: true |
|
1505 "/ #value: #makeSelectedColorDarker |
|
1506 "/ ) |
|
1507 ) nil |
1502 ) nil |
1508 nil |
1503 nil |
1509 ) |
1504 ) |
1510 |
1505 |
1511 "Created: / 12.3.1999 / 00:19:00 / cg" |
1506 "Created: / 12.3.1999 / 00:19:00 / cg" |
3208 "interactive Hue/Light/Saturation editing" |
3203 "interactive Hue/Light/Saturation editing" |
3209 |
3204 |
3210 |bindings hueShift lightValue saturationValue originalColormap firstChange acceptChannel |
3205 |bindings hueShift lightValue saturationValue originalColormap firstChange acceptChannel |
3211 shiftAction avgColorHolder avgColor shiftedColor shiftProcess readySema| |
3206 shiftAction avgColorHolder avgColor shiftedColor shiftProcess readySema| |
3212 |
3207 |
|
3208 "/ compute the averageColor in the background (while asking user) |
3213 readySema := Semaphore new. |
3209 readySema := Semaphore new. |
3214 [ |
3210 [ |
3215 originalColormap := imageEditView image colorMap copy. |
3211 originalColormap := imageEditView image colorMap copy. |
3216 avgColor := imageEditView image averageColor. |
3212 avgColor := imageEditView image averageColor. |
3217 readySema signal. |
3213 readySema signal. |