GNOME Bugzilla – Bug 676782
Add a grayscale effect
Last modified: 2012-07-06 19:18:23 UTC
This commit adds a grayscale effect to the magnifier, similar to the lightness, brightness and contrast effects that are already there. The effect is configured with the org.gnome.desktop.a11y.magnifier.color-saturation setting, which can take values from 0.0 (grayscale) to 1.0 (full color).
Created attachment 214907 [details] [review] Add a grayscale effect
ClutterDesaturateEffect?
(It even uses the same NTSC color primaries!)
Didn't know that existed...
Do you want to take another shot at the patch with ClutterDesaturateEffect, or should I whip up a quick one?
Also, ClutterDesaturateEffect doesn't seem to use the CoglSnippet system. Maybe we can port some of your changes back into Clutter.
Oh, I was just doing this while filling an hour of waiting for something else - feel free to clean it up. I'm not going to spend more time on it in the near term. I do think having grayscale rendering would be a useful addition to our a11y support.
Created attachment 218115 [details] [review] Add a grayscale effect This commit adds a grayscale effect to the magnifier, similar to the lightness, brightness and contrast effects that are already there. The effect is configured with the org.gnome.desktop.a11y.magnifier.color-saturation setting, which can take values from 0.0 (grayscale) to 1.0 (full color). Based on a patch by Matthias Clasen <mclasen@redhat.com>
Looks good to me, fwiw
Review of attachment 218115 [details] [review]: Looks good.
Attachment 218115 [details] pushed as 8754b27 - Add a grayscale effect