complementary()

Type : public method

Support : 1.0

Return : String

  • 해당 color의 보색 반환.

Methods

  • complementary( 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.complementary( '#ff0000' );//#00ffff