Added missing jsdoc comment to method "fade_rgb".

This commit is contained in:
mmcwilliams 2019-07-26 18:57:17 -04:00
parent 798e9ce1a3
commit 4023704d31
7 changed files with 43 additions and 3 deletions

View File

@ -432,6 +432,16 @@ class Mscript {
let color = str.split(' ')[3];
return this.rgb(color.trim());
}
/**
* Determine the state of a fade at a particular frame in the sequence, x
*
* @param {array} start Color the fade starts at
* @param {array} end Color the fade finishes at
* @param {integer} len Total length of the fade in frames
* @param {integer} x Position of the fade to get color value of
*
* @returns {array} Array containing RGB color values
*/
fade_rgb(start, end, len, x) {
let cur = [];
let diff;

File diff suppressed because one or more lines are too long

View File

@ -432,6 +432,16 @@ class Mscript {
let color = str.split(' ')[3];
return this.rgb(color.trim());
}
/**
* Determine the state of a fade at a particular frame in the sequence, x
*
* @param {array} start Color the fade starts at
* @param {array} end Color the fade finishes at
* @param {integer} len Total length of the fade in frames
* @param {integer} x Position of the fade to get color value of
*
* @returns {array} Array containing RGB color values
*/
fade_rgb(start, end, len, x) {
let cur = [];
let diff;

File diff suppressed because one or more lines are too long

View File

@ -432,6 +432,16 @@ class Mscript {
let color = str.split(' ')[3];
return this.rgb(color.trim());
}
/**
* Determine the state of a fade at a particular frame in the sequence, x
*
* @param {array} start Color the fade starts at
* @param {array} end Color the fade finishes at
* @param {integer} len Total length of the fade in frames
* @param {integer} x Position of the fade to get color value of
*
* @returns {array} Array containing RGB color values
*/
fade_rgb(start, end, len, x) {
let cur = [];
let diff;

File diff suppressed because one or more lines are too long

View File

@ -462,6 +462,16 @@ class Mscript {
let color : string = str.split(' ')[3];
return this.rgb(color.trim())
}
/**
* Determine the state of a fade at a particular frame in the sequence, x
*
* @param {array} start Color the fade starts at
* @param {array} end Color the fade finishes at
* @param {integer} len Total length of the fade in frames
* @param {integer} x Position of the fade to get color value of
*
* @returns {array} Array containing RGB color values
*/
fade_rgb (start : RGB, end : RGB, len : number, x : number) {
let cur = [];
let diff;