diff --git a/src/util/getDefaults.js b/src/util/getDefaults.js index 308f73c1..c4ec82cb 100644 --- a/src/util/getDefaults.js +++ b/src/util/getDefaults.js @@ -1,3 +1,4 @@ +/** Parses the defaults and gets the input which is available. */ module.exports = function(info){ var defaults = {}; for (var key in info.inputs) { diff --git a/src/util/pixelSetter.js b/src/util/pixelSetter.js index ab098575..e8b60f95 100644 --- a/src/util/pixelSetter.js +++ b/src/util/pixelSetter.js @@ -1,5 +1,12 @@ +/** + * @param {number} x x-coordinate. + * @param {number} y y-coordinate. + * @param {object} value array [r, g, b, a] + * @param {object} pixels NDarray of pixels. + * @description Sets the pixels from 0 through length of value. +*/ module.exports = function(x, y, value, pixels){ for(let i = 0; i < value.length; i++){ pixels.set(x, y, i, value[i]); } -}; \ No newline at end of file +};