浏览代码

Color: TS missing methods

Guilherme Avila 6 年之前
父节点
当前提交
17de4b3320
共有 1 个文件被更改,包括 24 次插入0 次删除
  1. 24 0
      src/math/Color.d.ts

+ 24 - 0
src/math/Color.d.ts

@@ -17,6 +17,8 @@ export class Color {
 	constructor( color?: Color | string | number );
 	constructor( color?: Color | string | number );
 	constructor( r: number, g: number, b: number );
 	constructor( r: number, g: number, b: number );
 
 
+	isColor: boolean;
+
 	/**
 	/**
    * Red channel value between 0 and 1. Default is 1.
    * Red channel value between 0 and 1. Default is 1.
    */
    */
@@ -95,6 +97,28 @@ export class Color {
    */
    */
 	convertLinearToGamma(): Color;
 	convertLinearToGamma(): Color;
 
 
+	/**
+   * Copies given color making conversion from sRGB to linear space.
+   * @param color Color to copy.
+   */
+	copySRGBToLinear(): Color;
+
+	/**
+	 * Copies given color making conversion from linear to sRGB space.
+	 * @param color Color to copy.
+	 */
+	copyLinearToSRGB(): Color;
+
+	/**
+	 * Converts this color from sRGB to linear space.
+	 */
+	convertSRGBToLinear(): Color;
+
+	/**
+	 * Converts this color from linear to sRGB space.
+	 */
+	convertLinearToSRGB(): Color;
+
 	/**
 	/**
    * Returns the hexadecimal value of this color.
    * Returns the hexadecimal value of this color.
    */
    */