Skip to content

Commit

Permalink
refactor(color): change type in function documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
Raffael Dipietro committed Oct 7, 2024
1 parent bad8194 commit be7c70c
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions source/engine/model/color.js
Original file line number Diff line number Diff line change
@@ -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)
{
Expand All @@ -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)
{
Expand All @@ -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)
{
Expand All @@ -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)
{
Expand Down

0 comments on commit be7c70c

Please sign in to comment.