maiself / gnome-shell-extension-invert-color

GNOME Shell extension for inverting the color of windows
MIT License
42 stars 23 forks source link

Smart (brightness) inversion #8

Closed log69 closed 5 years ago

log69 commented 5 years ago

Dear Maiself,

I'd like to ask you whether there is a possibility to make your code do the inversion by inverting the brightness of the colors instead of the RGB values? This way we'd get a smart conversion that keeps the colors and invert only the whites and blacks.

Would it be too CPU intesive? Would it be possible at all to do that as an extension?

If I'm not mistaken, then the heavy RGB -> HSL -> modification -> RGB conversion could be reduced easily by rotating the RGB values in HSL format by 180 degrees without converting them to HSL.

Thanks.

log69 commented 5 years ago

Solved in the other thread here: https://github.com/maiself/gnome-shell-extension-invert-color/issues/1#issuecomment-207786581