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

[ColorO_F] LESS - shade() 함수 - 색깔을 검은색과 지정 비율로 결합. (= shade함수 = 셰이드함수)

748  

shade() 함수

[정의]

 

색깔을 지정 비율로 검은색과 결합.

 

※ 아래 함수 실행 결과와 동일.

mix(#000000, @color, @weight)

 


[구문]

 

shade(color, weight)

 


[매개변수]

 

color

필수. 기본 색상.

 

weight

필수, 결합 비율. (기본값: 50%)

 


[반환값]

 

지정 비율로 검은색과 결합된 color 코드.

 


[예제]

 

no-alpha: shade(#007fff, 50%); 

반환값: no-alpha: #004080;


with-alpha: shade(rgba(00,0,255,0.5), 50%); 

반환값: with-alpha: rgba(0, 0, 64, 0.75);

 

 

PS.

LESS shade() 함수

http://lesscss.org/functions/#color-operations-shade


분류 제목
ColorO_F LESS - saturate() 함수 - HSL 채도 높이기. (= saturate함수)
ColorO_F LESS - desaturate() 함수 - HSL 채도 낮추기. (= desaturate함수)
ColorO_F LESS - lighten() 함수 - HSL 명도 높이기. (= lighten함수)
ColorO_F LESS - darken() 함수 - HSL 명도 낮추기. (= darken함수)
ColorO_F LESS - fadein() 함수 - 색깔 불투명도 높이기. (= fadein함수)
ColorO_F LESS - fadeout() 함수 - 색깔 불투명도 낮추기. (= fadeout함수)
ColorO_F LESS - fade() 함수 - 색상 불투명도 설정. (= fade함수)
ColorO_F LESS - spin() 함수 - 색깔의 색상 변경. (= spin함수)
ColorO_F LESS - mix() 함수 - 색깔을 지정 비율대로 혼합. (= mix함수 = 믹스함수)
ColorO_F LESS - tint() 함수 - 색상을 흰색과 지정 비율로 결합. (= tint함수 = 틴트함수)
ColorO_F LESS - shade() 함수 - 색깔을 검은색과 지정 비율로 결합. (= shade함수 = 셰이드함수)
ColorO_F LESS - greyscale() 함수 - HSL 채도 전부 제거. (= grayscale함수 = 그레이스케…
ColorO_F LESS - contrast() 함수 - 대비색 찾기. (= contrast함수)
목록
찾아주셔서 감사합니다. Since 2012