From be7c70c8a2bb088a8f16833a6cdd28fe87eacc78 Mon Sep 17 00:00:00 2001 From: Raffael Dipietro Date: Mon, 7 Oct 2024 14:30:06 +0200 Subject: [PATCH] refactor(color): change type in function documentation --- source/engine/model/color.js | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/source/engine/model/color.js b/source/engine/model/color.js index 73d7afdb..ae6c0f8f 100644 --- a/source/engine/model/color.js +++ b/source/engine/model/color.js @@ -1,12 +1,12 @@ /** - * RGB color object. Components are integers in the range of 0..255. + * RGB color object. Components are numbers in the range of 0..255. */ export class RGBColor { /** - * @param {integer} r Red component. - * @param {integer} g Green component. - * @param {integer} b Blue component. + * @param {number} r Red component. + * @param {number} g Green component. + * @param {number} b Blue component. */ constructor (r, g, b) { @@ -17,9 +17,9 @@ export class RGBColor /** * Sets the value of all components. - * @param {integer} r Red component. - * @param {integer} g Green component. - * @param {integer} b Blue component. + * @param {number} r Red component. + * @param {number} g Green component. + * @param {number} b Blue component. */ Set (r, g, b) { @@ -39,15 +39,15 @@ export class RGBColor } /** - * RGBA color object. Components are integers in the range of 0..255. + * RGBA color object. Components are numbers in the range of 0..255. */ export class RGBAColor { /** - * @param {integer} r Red component. - * @param {integer} g Green component. - * @param {integer} b Blue component. - * @param {integer} a Alpha component. + * @param {number} r Red component. + * @param {number} g Green component. + * @param {number} b Blue component. + * @param {number} a Alpha component. */ constructor (r, g, b, a) { @@ -59,10 +59,10 @@ export class RGBAColor /** * Sets the value of all components. - * @param {integer} r Red component. - * @param {integer} g Green component. - * @param {integer} b Blue component. - * @param {integer} a Alpha component. + * @param {number} r Red component. + * @param {number} g Green component. + * @param {number} b Blue component. + * @param {number} a Alpha component. */ Set (r, g, b, a) {