ui output for average (#252)

This commit is contained in:
Jeffrey Warren
2018-05-09 10:11:20 -04:00
committed by GitHub
parent 991e9bb29c
commit 6ce78f87f4
3 changed files with 5 additions and 1 deletions

View File

@@ -49,6 +49,8 @@ module.exports = function Average(options, UI){
// report back and store average in metadata:
options.step.metadata.averages = sum;
console.log("average: ", sum);
// TODO: refactor into a new "display()" method as per https://github.com/publiclab/image-sequencer/issues/242
if (options.step.inBrowser && options.step.ui) $(options.step.ui).find('.details').append("<p><b>Averages</b> (r, g, b, a): " + sum.join(', ') + "</p>");
return pixels;
}