Bladeren bron

Color: TS missing methods

Guilherme Avila 6 jaren geleden
bovenliggende
commit
17de4b3320
1 gewijzigde bestanden met toevoegingen van 24 en 0 verwijderingen
  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( r: number, g: number, b: number );
 
+	isColor: boolean;
+
 	/**
    * Red channel value between 0 and 1. Default is 1.
    */
@@ -95,6 +97,28 @@ export class 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.
    */