Colors (d3-color)
Color manipulation and color space conversion.颜色控制颜色空间转换
- d3.color - parse the given CSS color specifier.转换css颜色说明符
- color.opacity - the color’s opacity.颜色透明度
- color.rgb - compute the RGB equivalent of this color.计算出改颜色的RGB值
- color.copy - return a copy of this color.返回颜色对象的拷贝
- color.brighter - create a brighter copy of this color.返回一个更明亮的颜色拷贝
- color.darker - create a darker copy of this color.返回一个更暗的颜色拷贝
- color.displayable - returns true if the color is displayable on standard hardware.返回该颜色是否能在标准硬件上显示
- color.formatHex - returns the hexadecimal RGB string representation of this color.返回该颜色的16进制RGB字符表示
- color.formatHsl - returns the RGB string representation of this color.返回该颜色的RGB字符表示
- color.formatRgb - returns the HSL string representation of this color.返回该颜色的HSL字符表示
- color.toString - returns the RGB string representation of this color.返回该颜色的RGB字符表示
- d3.rgb - create a new RGB color.创建一个rgb颜色对象
- d3.hsl - create a new HSL color.创建一个hsl颜色对象
- d3.lab - create a new Lab color.创建一个lab颜色对象
- d3.gray - create a new Lab gray.
- d3.hcl - create a new HCL color.创建一个hcl颜色对象
- d3.lch - create a new HCL color.
- d3.cubehelix - create a new Cubehelix color.