• 회원가입
  • 로그인
  • 구글아이디로 로그인

[ColorB_F] LESS - negation() 함수 - difference() 함수의 반대 효과. (= negation함수)

884  

negation() 함수

[정의]

 

difference() 함수의 반대 효과 갖는 더 밝은색 color 코드 반환.

주의: "반대 효과"는 두 색상코드를 더하는 효과 아님.



[구문]

 

negation(color1, color2)

 


[매개변수]

 

color1

필수. 피감수 역할하는 색상 코드. (예: 3-2=1에서 3)

 

color2

필수. 감수 역할하는 색상 코드. (예: 3-2=1에서 2)

 


[예제]

 

채널별로 color1에서 color2를 뺀 색상코드 반환.

 


[예제]

 

negation(#ff6600, #000000); // ff6600

negation(#ff6600, #333333); // cc9933

 

 

PS.

LESS negation() 함수 예제 더 보기

http://lesscss.org/functions/#color-blending-negation



분류 제목
ColorB_F LESS - multiply() 함수 - 더 어두운색 만들기. (= multiply함수)
ColorB_F LESS - screen() 함수 - 더 밝은색 만들기. (= screen함수)
ColorB_F LESS - overlay() 함수 - 밝은색은 더 밝게, 어두운색은 더 어둡게. (= overlay함수)
ColorB_F LESS - softlight() 함수 - 부드럽게 밝은 색 만들기. (= softlight함수)
ColorB_F LESS - hardlight() 함수 - overlay() 함수와 기준 매개변수 반대. (= hardlig…
ColorB_F LESS - difference() 함수 - 색상 채널별로 빼기. (= difference함수)
ColorB_F LESS - exclusion() 함수 - difference() 함수와 유사하나, 더 낮은 대비 갖음. …
ColorB_F LESS - average() 함수 - 평균색 구하기. (= average함수 = 애버리지함수)
ColorB_F LESS - negation() 함수 - difference() 함수의 반대 효과. (= negation함수…
목록
찾아주셔서 감사합니다. Since 2012