Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
2 | 5 | 3 | 0.952 | ExpressionStatement |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 2 | 208 | Closure/closure/goog/color/alpha.js |
2 | 2 | 219 | Closure/closure/goog/color/alpha.js |
3 | 2 | 230 | Closure/closure/goog/color/alpha.js |
4 | 2 | 285 | Closure/closure/goog/color/alpha.js |
5 | 2 | 446 | Closure/closure/goog/color/alpha.js |
| ||||
/** * Converts a color from RGBA to hex representation. * @param {Array.<number>} rgba Array of [r, g, b, a], with r, g, b in [0, 255] * and a in [0, 1]. * @return {string} hex representation of the color. */ goog.color.alpha.rgbaArrayToHex= function (rgba){ return goog.color.alpha.rgbaToHex(rgba[0], rgba[1], rgba[2], rgba[3]); } ; |
| ||||
/** * Converts a color from HSLA to hex representation. * @param {Array.<number>} hsla Array of [h, s, l, a], where h is an integer in * [0, 360], s and l are integers in [0, 100], and a is in [0, 1]. * @return {string} hex representation of the color, such as '#af457eff'. */ goog.color.alpha.hslaArrayToHex= function (hsla){ return goog.color.alpha.hslaToHex(hsla[0], hsla[1], hsla[2], hsla[3]); } ; |
| ||||
/** * Converts a color from HSLA to an RGBA style string. * @param {Array.<number>} hsla Array of [h, s, l, a], where h is and integer in * [0, 360], s and l are integers in [0, 100], and a is in [0, 1]. * @return {string} An 'rgba(r,g,b,a)' string ready for use in a CSS rule. */ goog.color.alpha.hslaArrayToRgbaStyle= function (hsla){ return goog.color.alpha.hslaToRgbaStyle(hsla[0], hsla[1], hsla[2], hsla[3]); } ; |
| ||||
/** * Converts a color from RGBA color space to HSLA color space. * @param {Array.<number>} rgba [r, g, b, a] values for the color, each in * [0, 255]. * @return {Array.<number>} [h, s, l, a] values for the color, with h in * [0, 360] and s, l and a in [0, 1]. */ goog.color.alpha.rgbaArrayToHsla= function (rgba){ return goog.color.alpha.rgbaToHsla(rgba[0], rgba[1], rgba[2], rgba[3]); } ; |
| ||||
/** * Converts from an HSVA array to a hex string * @param {Array} hsva Array of [h, s, v, a] in * [[0, 1], [0, 1], [0, 255], [0, 1]]. * @return {string} hex representation of the color. */ goog.color.alpha.hsvaArrayToHex= function (hsva){ return goog.color.alpha.hsvaToHex(hsva[0], hsva[1], hsva[2], hsva[3]); } ; |
| |||
/** * Converts from an HSVA array to a hex string * @param {Array} hsva Array of [h, s, v, a] in * [[0, 1], [0, 1], [0, 255], [0, 1]]. * @return {string} hex representation of the color. */ /** * Converts a color from RGBA color space to HSLA color space. * @param {Array.<number>} rgba [r, g, b, a] values for the color, each in * [0, 255]. * @return {Array.<number>} [h, s, l, a] values for the color, with h in * [0, 360] and s, l and a in [0, 1]. */ /** * Converts a color from HSLA to an RGBA style string. * @param {Array.<number>} hsla Array of [h, s, l, a], where h is and integer in * [0, 360], s and l are integers in [0, 100], and a is in [0, 1]. * @return {string} An 'rgba(r,g,b,a)' string ready for use in a CSS rule. */ /** * Converts a color from HSLA to hex representation. * @param {Array.<number>} hsla Array of [h, s, l, a], where h is an integer in * [0, 360], s and l are integers in [0, 100], and a is in [0, 1]. * @return {string} hex representation of the color, such as '#af457eff'. */ /** * Converts a color from RGBA to hex representation. * @param {Array.<number>} rgba Array of [r, g, b, a], with r, g, b in [0, 255] * and a in [0, 1]. * @return {string} hex representation of the color. */ goog.color.alpha. [[#variable5f15e0c0]]= function ( [[#variable5ce90000]]) { return goog.color.alpha. [[#variable5f15fee0]]( [[#variable5ce90000]][0], [[#variable5ce90000]][1], [[#variable5ce90000]][2], [[#variable5ce90000]][3]); } ; |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#5f15e0c0]] | hsvaArrayToHex |
1 | 2 | [[#5f15e0c0]] | rgbaArrayToHsla |
1 | 3 | [[#5f15e0c0]] | hslaArrayToRgbaStyle |
1 | 4 | [[#5f15e0c0]] | hslaArrayToHex |
1 | 5 | [[#5f15e0c0]] | rgbaArrayToHex |
2 | 1 | [[#5ce90000]] | hsva |
2 | 2 | [[#5ce90000]] | rgba |
2 | 3 | [[#5ce90000]] | hsla |
2 | 4 | [[#5ce90000]] | hsla |
2 | 5 | [[#5ce90000]] | rgba |
3 | 1 | [[#5f15fee0]] | hsvaToHex |
3 | 2 | [[#5f15fee0]] | rgbaToHsla |
3 | 3 | [[#5f15fee0]] | hslaToRgbaStyle |
3 | 4 | [[#5f15fee0]] | hslaToHex |
3 | 5 | [[#5f15fee0]] | rgbaToHex |