From 9260441d08f1b6d1b5b8b64dbbf8c2c1fde76614 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?TED=20A=2E=20=E2=AD=95?= <105297660+wattapik@users.noreply.github.com> Date: Sun, 1 Oct 2023 14:51:43 +0000 Subject: [PATCH] Update image_load.js --- script/image_load.js | 34 +--------------------------------- 1 file changed, 1 insertion(+), 33 deletions(-) diff --git a/script/image_load.js b/script/image_load.js index e6b9020..ea98055 100644 --- a/script/image_load.js +++ b/script/image_load.js @@ -49,39 +49,7 @@ fetch('image/image.txt') image_count++; } }); - return Promise.all(imagePromises); - }) - .then(() => { - let all_filters = [] - - dictionaries.forEach(image => { - let filter = { - items: viewer.world.getItemAt(image.imageCount), - processors: [ - function (context, callback) { - Caman(context.canvas, function () { - this.colorize(image.red, image.green, image.blue, 80); - this.render(callback); - }); - }, - // function (context, callback) { - // Caman(context.canvas, function () { - // this.contrast(100); - // this.render(callback); - // }); - // } - ] - } - - all_filters.push(filter) - }); - - // viewer.setFilterOptions({ - // filters: all_filters - // }); - - }) .catch(error => { console.error('Error:', error); - }); \ No newline at end of file + });