νμ¬ λ΄κ° μ¬μ©νκ³ μλ
color: hsl(hue(@black), saturation(@black), 100 - lightness(@black));
μμμ λ°μ νμ§λ§
color: invert(@color)
μμ
μ ν¨μ¬ λ λμ κ΅¬λ¬Έμ΄ λ κ²μ
λλ€.
κΈ°λ₯ μ½λ:
λ°μ : ν¨μ(μμ) { var rgb = [255 - color.rgb[0], 255 - color.rgb[1], 255 - color.rgb[2]]; λ°ν new(tree.Color)(rgb); },
λλ less.js 1.2.1λ‘ κ·Έκ²μ ν μ€νΈνμ¬ μλν©λλ€.
μ λ°μ΄νΈλ μλ³Έ κ²μλ¬Ό
μ΄κ²μ λν΄ +1:
λͺ
νννκΈ° μν΄ μ¬μ©νκ³ μλ€λ κ²μ μλ―Έν©λκΉ?
hsl(hue(@color), saturation(@color), 100 - lightness(@color));
+1λ λ©λλ€.
μ΄κ²μ μ΄μ λΆμ μΌλ‘ λ¬μ±ν μ μμ΅λλ€
http://lesscss.org/functions/#color - νΌν© λΆμ
μ€μ λ‘λ negation
μλλλ€. @Oskariok μ΄ κ²μν μλ°μ€ν¬λ¦½νΈ μ½λλ λ¨μ Less (#fff - @color)
λλ difference(#fff, @color)
μ
λλ€. κ·Έλ¬λ λμ€μ @ascottmccauley κ° μ μν Less μ½λλ λμΌνμ§ μκ³ μμ λ°κΈ°λ§ λ°μ λ©λλ€(κ·Έλμ 첫 λ²μ§Έ κ²μλ¬Όμ Lessμ javascript μ€λν«μ΄ μλ‘ μΌμΉνμ§ μμ΅λλ€). "κ°λ²Όμ λ°μ "λ λ μ₯ν©νκ² λ¬μ±ν μ μμ΅λλ€: spin((#fff - @color), 180);
μ’μ μ΄λ μͺ½μ΄λ ..
κ°μ₯ μ μ©ν λκΈ
μ΄κ²μ λν΄ +1:
λͺ νννκΈ° μν΄ μ¬μ©νκ³ μλ€λ κ²μ μλ―Έν©λκΉ?