Color gestures
A new method for quick and precise adjustment of colors is added in this version: color gestures. It works on the selected objects by grabbing the fill or stroke color swatch in the selected style indicator (on the left of the statusbar) and dragging it in various directions as described below. Note that this only works when the swatch displays a flat color; it does not work for a swatch showing "None", "N/A", or displaying a gradient (although you can select one or more gradient stops in Gradient tool and color-adjust them by color gestures just as you would do for objects). Color gestures can work on fill or stroke, depending on which swatch in the selected color indicator you drag.
Color gestures work in HSL color space. Dragging without any keyboard modifiers adjusts the hue channel, dragging with Shift adjusts saturation, and dragging with Ctrl adjusts lightness.
The adjustment is done by rotating the color swatch away from the original direction which is assumed to be NE at 45 degrees (i.e. from the swatch into the document window). That is, once you click and drag the color swatch, imagine a line going from the point where you clicked in the NE direction, across the entire Inkscape window. By dragging below or to the right of that line, you decrease the corresponding color channel, to the minimum at the lower edge of the window; by dragging it above or to the left, you increase it, to the maximum at the left edge of the window. If you hover your mouse exactly over the 45 degrees line, the change will be zero.
Note that you can easily vary the precision of your adjustment. If you drag close enough to the swatch, each small movement results in a big change of the color. If you need a finer adjustment, just drag farther away from the swatch, towards the center of the Inkscape window or even to its upper right corner, where minute movements will produce very small changes in the color. In fact, this method gives you more color precision than even the color wheel in the Fill and Stroke dialog, unless you expand that dialog to fill the entire screen which is rarely practical.
Watch the statusbar which will indicate, as you drag, the channel you are adjusting, the original value of that channel, and the new value.
You can switch channels while you drag. That is, you don't need to restart dragging from the swatch if you want to adjust all three channels - you can do it in one drag, pressing and releasing Ctrl and Shift as necessary. Note that when you change the keyboard modifiers during drag, the position of the zero-change line is temporarily set to the current position of the mouse; this is done so that there are no sudden changes in color if you are switching modifiers away from the original 45-degree line.
For example, you can select a green rectangle and first turn it into greenish-blue by dragging away from the Fill swatch and slightly above the 45 degrees line; then, without releasing the mouse, press Ctrl and drag a bit to the right to darken the color; then press Shift, release Ctrl, and adjust saturation. You can press or release Ctrl and Shift as many times as necessary during a single drag; when you are finally satisfied with your color, release the mouse to commit the change.
Apart from precise adjustments, you can use color gestures to quickly perform common color transformations:
* Ctrl+drag the swatch to the right and down to color all selected objects black.
* Ctrl+drag the swatch upwards and to the left to color all selected objects white.
* Shift+drag the swatch to the right and down to desaturate the color of selected objects.
* Shift+drag the swatch upwards and to the left to maximize saturation of the color of selected objects.
Note that when several objects or gradient stops with different colors are selected, the selected style indicator shows their averaged color. If you adjust that color by gesturing, the changed color will be assigned back to all selected objects/stops, in effect eliminating any difference between them. If you want to adjust many different-colored objects preserving their relative differences, use the color modes of the Tweak tool or color adjustment extension effects.
This new technique requires some getting used to, but once you get the idea it is quite convenient, fast, and precise.
bulia byak wrote:
A new method for quick and precise adjustment of colors is added in this version: color gestures. It works on the selected objects by grabbing the fill or stroke color swatch in the selected style indicator (on the left of the statusbar) and dragging it in various directions as described below.
Wow, cool! I'll have to play with this one. I only have one request:
If you hover your mouse exactly over the 45 degrees line, the change will be zero.
Would it be possible to draw this 45 degree line somewhere on the window, and/or snap to it, so that you can easily stay at the zero-change point in the operation until you've moved out far enough to make the smaller, more precise changes?
John
On 10/23/07, John Bintz <jcoswell@...1414...> wrote:
Would it be possible to draw this 45 degree line somewhere on the window
I would love to. But I don't know how you can draw an overlay over the entire window and all its widgets. If someone can give me a pointer I will look into that.
and/or snap to it
Snapping is not really a good idea, because the value of the method is in that it can make really tiny adjustments by being close to the zero line, and snapping will ruin that. Right now however it does snap to zero when fabs(change) < 0.002; I don't think we can raise this threshold too much without making it less precise.
When were these changes commited? Its just I want to try them out via a windows autobuild, and I don't want to download one if it is not in there yet...
Cheers,
ryanlerch
-----Original Message----- From: inkscape-user-bounces@lists.sourceforge.net [mailto:inkscape-user- bounces@lists.sourceforge.net] On Behalf Of bulia byak Sent: Wednesday, 24 October 2007 11:32 AM To: Inkscape List Devel; Inkscape User Community Subject: [Inkscape-user] NEW: color gestures
Color gestures
A new method for quick and precise adjustment of colors is added in this version: color gestures. It works on the selected objects by grabbing the fill or stroke color swatch in the selected style indicator (on the left of the statusbar) and dragging it in various directions as described below. Note that this only works when the swatch displays a flat color; it does not work for a swatch showing "None", "N/A", or displaying a gradient (although you can select one or more gradient stops in Gradient tool and color-adjust them by color gestures just as you would do for objects). Color gestures can work on fill or stroke, depending on which swatch in the selected color indicator you drag.
Color gestures work in HSL color space. Dragging without any keyboard modifiers adjusts the hue channel, dragging with Shift adjusts saturation, and dragging with Ctrl adjusts lightness.
The adjustment is done by rotating the color swatch away from the original direction which is assumed to be NE at 45 degrees (i.e. from the swatch into the document window). That is, once you click and drag the color swatch, imagine a line going from the point where you clicked in the NE direction, across the entire Inkscape window. By dragging below or to the right of that line, you decrease the corresponding color channel, to the minimum at the lower edge of the window; by dragging it above or to the left, you increase it, to the maximum at the left edge of the window. If you hover your mouse exactly over the 45 degrees line, the change will be zero.
Note that you can easily vary the precision of your adjustment. If you drag close enough to the swatch, each small movement results in a big change of the color. If you need a finer adjustment, just drag farther away from the swatch, towards the center of the Inkscape window or even to its upper right corner, where minute movements will produce very small changes in the color. In fact, this method gives you more color precision than even the color wheel in the Fill and Stroke dialog, unless you expand that dialog to fill the entire screen which is rarely practical.
Watch the statusbar which will indicate, as you drag, the channel you are adjusting, the original value of that channel, and the new value.
You can switch channels while you drag. That is, you don't need to restart dragging from the swatch if you want to adjust all three channels - you can do it in one drag, pressing and releasing Ctrl and Shift as necessary. Note that when you change the keyboard modifiers during drag, the position of the zero-change line is temporarily set to the current position of the mouse; this is done so that there are no sudden changes in color if you are switching modifiers away from the original 45-degree line.
For example, you can select a green rectangle and first turn it into greenish-blue by dragging away from the Fill swatch and slightly above the 45 degrees line; then, without releasing the mouse, press Ctrl and drag a bit to the right to darken the color; then press Shift, release Ctrl, and adjust saturation. You can press or release Ctrl and Shift as many times as necessary during a single drag; when you are finally satisfied with your color, release the mouse to commit the change.
Apart from precise adjustments, you can use color gestures to quickly perform common color transformations:
* Ctrl+drag the swatch to the right and down to color all selected
objects black.
* Ctrl+drag the swatch upwards and to the left to color all
selected objects white.
* Shift+drag the swatch to the right and down to desaturate the
color of selected objects.
* Shift+drag the swatch upwards and to the left to maximize
saturation of the color of selected objects.
Note that when several objects or gradient stops with different colors are selected, the selected style indicator shows their averaged color. If you adjust that color by gesturing, the changed color will be assigned back to all selected objects/stops, in effect eliminating any difference between them. If you want to adjust many different-colored objects preserving their relative differences, use the color modes of the Tweak tool or color adjustment extension effects.
This new technique requires some getting used to, but once you get the idea it is quite convenient, fast, and precise.
-- bulia byak Inkscape. Draw Freely. http://www.inkscape.org
This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Inkscape-user mailing list Inkscape-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/inkscape-user
Cool feature!
* Can you change the mousecursor when dragging? Just a visual clue to sign that one is rotate-changing something.
* Statusbar text gets overwritten for a rectangle with shift and ctrl pressed.
Cheers, Johan
On 10/24/07, J.B.C.Engelen@...1578... <J.B.C.Engelen@...1578...> wrote:
Cool feature!
- Can you change the mousecursor when dragging? Just a visual clue to sign that one is rotate-changing something.
good idea, try svn now
The mouse cursor changes when you're doing color gestures, reflecting the channel currently adjusted and indicating the directions for increasing and decreasing the value.
- Statusbar text gets overwritten for a rectangle with shift and ctrl pressed.
I can't see it - can you give more details?
-----Original Message----- From: bulia byak [mailto:buliabyak@...400...] Sent: woensdag 24 oktober 2007 21:47 To: Engelen, J.B.C. (Johan) Cc: inkscape-user@lists.sourceforge.net; inkscape-devel@lists.sourceforge.net Subject: Re: [Inkscape-user] NEW: color gestures
On 10/24/07, J.B.C.Engelen@...1578... <J.B.C.Engelen@...1578...> wrote:
Cool feature!
- Can you change the mousecursor when dragging? Just a
visual clue to sign that one is rotate-changing something.
good idea, try svn now
I don't see the cursor changing.
The mouse cursor changes when you're doing color gestures, reflecting the channel currently adjusted and indicating the directions for increasing and decreasing the value.
- Statusbar text gets overwritten for a rectangle with
shift and ctrl pressed.
I can't see it - can you give more details?
Draw a rectangle, give it a gray color (hue=0). Then gesture the color. statusbar shows: * For top left dragging: "hue was 0, ..." * For bottom right dragging: "hue was 2,98e-8,..."
Press Ctrl, gesture color: then the statusbar flickers between the normal ctrl text (without gesturing) and the gesture text.
Shift the same.
This all is on windows ofcourse. On Linux, everything works fine. How come we experience these differences between Windows/Linux ? Different versions of GTK?
cheers, Johan
On 10/25/07, J.B.C.Engelen@...1578... <J.B.C.Engelen@...1578...> wrote:
- Can you change the mousecursor when dragging? Just a
visual clue to sign that one is rotate-changing something.
good idea, try svn now
I don't see the cursor changing.
It works for me, can anyone else confirm?
Press Ctrl, gesture color: then the statusbar flickers between the normal ctrl text (without gesturing) and the gesture text.
Again, I don't see this on Linux.
This all is on windows ofcourse. On Linux, everything works fine. How come we experience these differences between Windows/Linux ? Different versions of GTK?
It may be that. Can you try to upgrade your linux gtk to match win?
bulia byak wrote:
On 10/25/07, J.B.C.Engelen@...1578... <J.B.C.Engelen@...1578...> wrote:
- Can you change the mousecursor when dragging? Just a
visual clue to sign that one is rotate-changing something.
good idea, try svn now
I don't see the cursor changing.
It works for me, can anyone else confirm?
Works for me on linux as well... btw, it's beyond helpful to have the cursor "instructing" how to drag. Thanks! :)
Press Ctrl, gesture color: then the statusbar flickers between the normal ctrl text (without gesturing) and the gesture text.
Again, I don't see this on Linux.
Not seeing this either. Also on linux. Could this perhaps be an older version of gtk (in the win32 libs) issue?
-Josh
Our latest lib package for windows has gtk 2.12.1. I'll wait for the 'official' ubuntu gtk2.12 if you don't mind. I am scared by trying to do this myself as I've seen ubuntu patches for 2.12 etc.
Perhaps I should downgrade to 2.10...
Cheers, Johan
-----Original Message----- From: bulia byak [mailto:buliabyak@...400...] Sent: donderdag 25 oktober 2007 22:57 To: Engelen, J.B.C. (Johan) Cc: inkscape-devel@lists.sourceforge.net Subject: Re: NEW: color gestures
On 10/25/07, J.B.C.Engelen@...1578... <J.B.C.Engelen@...1578...> wrote:
- Can you change the mousecursor when dragging? Just a
visual clue to sign that one is rotate-changing something.
good idea, try svn now
I don't see the cursor changing.
It works for me, can anyone else confirm?
Press Ctrl, gesture color: then the statusbar flickers between the normal ctrl text (without gesturing) and the gesture text.
Again, I don't see this on Linux.
This all is on windows ofcourse. On Linux, everything works
fine. How
come we experience these differences between Windows/Linux
? Different
versions of GTK?
It may be that. Can you try to upgrade your linux gtk to match win?
-- bulia byak Inkscape. Draw Freely. http://www.inkscape.org
*I* wrote:
Our latest lib package for windows has gtk 2.12.1. I'll wait for the 'official' ubuntu gtk2.12 if you don't mind. I am scared by trying to do this myself as I've seen ubuntu patches for 2.12 etc.
Nvm, downloading 2.12 now. I'll let you know what happens next. But I think Josh has it aswell and it works for him.
-----Original Message----- From: bulia byak [mailto:buliabyak@...400...] Sent: donderdag 25 oktober 2007 22:57 To: Engelen, J.B.C. (Johan) Cc: inkscape-devel@lists.sourceforge.net Subject: Re: NEW: color gestures
On 10/25/07, J.B.C.Engelen@...1578... <J.B.C.Engelen@...1578...> wrote:
- Can you change the mousecursor when dragging? Just a
visual clue to sign that one is rotate-changing something.
good idea, try svn now
I don't see the cursor changing.
It works for me, can anyone else confirm?
Press Ctrl, gesture color: then the statusbar flickers between the normal ctrl text (without gesturing) and the gesture text.
Again, I don't see this on Linux.
This all is on windows ofcourse. On Linux, everything works
fine. How
come we experience these differences between Windows/Linux
? Different
versions of GTK?
It may be that. Can you try to upgrade your linux gtk to match win?
-- bulia byak Inkscape. Draw Freely. http://www.inkscape.org
This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Inkscape-devel mailing list Inkscape-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/inkscape-devel
On 10/25/07, bulia byak <buliabyak@...400...> wrote:
On 10/25/07, J.B.C.Engelen@...1578... <J.B.C.Engelen@...1578...> wrote:
- Can you change the mousecursor when dragging? Just a
visual clue to sign that one is rotate-changing something.
good idea, try svn now
I don't see the cursor changing.
It works for me, can anyone else confirm?
No change on win here either.
Press Ctrl, gesture color: then the statusbar flickers between the normal ctrl text (without gesturing) and the gesture text.
Again, I don't see this on Linux.
Again, can confirm on my win build.
This all is on windows ofcourse. On Linux, everything works fine. How come we experience these differences between Windows/Linux ? Different versions of GTK?
It may be that. Can you try to upgrade your linux gtk to match win?
-- bulia byak Inkscape. Draw Freely. http://www.inkscape.org
participants (6)
-
unknown@example.com
-
bulia byak
-
John Bintz
-
john cliff
-
Joshua A. Andler
-
Ryan Lerch