grayscale()

Type : public method

Support : 1.0

Return : String

  • 해당 color의 회색톤 반환.

Methods

  • grayscale( color, type ) : Stringver 1.0~

    • color : String
      Color문자열 "hex", "rgb", "rgba", "keyword", "hsl", "hsla"
    • type : String
      반환 받을 Color Type, "hex", "rgb", "rgba", "hsl", "hsla" (기본값 "hex")

Example

var color = $B.color.grayscale( '#ff0000' );// #555555