File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change 1+ /**
2+ * @author Joe Pea / http://github.com/trusktr
3+ */
4+
15export interface HSL {
26 h : number ;
37 s : number ;
@@ -90,24 +94,24 @@ export class Color {
9094 /**
9195 * Converts this color from gamma to linear space.
9296 */
93- convertGammaToLinear ( ) : Color ;
97+ convertGammaToLinear ( gammaFactor ?: number ) : Color ;
9498
9599 /**
96100 * Converts this color from linear to gamma space.
97101 */
98- convertLinearToGamma ( ) : Color ;
102+ convertLinearToGamma ( gammaFactor ?: number ) : Color ;
99103
100104 /**
101105 * Copies given color making conversion from sRGB to linear space.
102106 * @param color Color to copy.
103107 */
104- copySRGBToLinear ( ) : Color ;
108+ copySRGBToLinear ( color : Color ) : Color ;
105109
106110 /**
107111 * Copies given color making conversion from linear to sRGB space.
108112 * @param color Color to copy.
109113 */
110- copyLinearToSRGB ( ) : Color ;
114+ copyLinearToSRGB ( color : Color ) : Color ;
111115
112116 /**
113117 * Converts this color from sRGB to linear space.
You can’t perform that action at this time.
0 commit comments