Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to invert colors in LESS

Tags:

colors

less

Is there a particular color operation I'm not seeing where you can invert colors? I'm seeing lots of color methods but could not see a way to do this.

reference:

http://lesscss.org/

like image 745
King Friday Avatar asked Dec 03 '12 02:12

King Friday


People also ask

What is the easiest way to invert colors?

Press the Windows key on your keyboard, or click the Windows icon at the bottom left of your screen, and type "Magnifier." Open the search result that comes up. 2. Scroll down through this menu until you find "Invert colors" select it.

How can I invert colors on a picture?

Invert the image by pressing the shortcut key Ctrl + I .


1 Answers

There are multiple interpretation of inverting color.

  • You want a color with the opposite hue:

    spin(@color, 180)

  • You want a color that the sum with current one is white:

    #fff - @color

like image 67
xiaoyi Avatar answered Sep 22 '22 23:09

xiaoyi