├── .editorconfig ├── .github └── workflows │ └── npm-publish.yml ├── .gitignore ├── .npmignore ├── LICENSE ├── changelog.md ├── codecov.yml ├── conf ├── biome.json ├── eslint.config.mjs ├── tsconfig.base.json ├── tsconfig.type.json ├── tsconfig.vite.json ├── vite.config.test.ts ├── vite.config.ts └── vite.config.worker.ts ├── doc └── colors-2.jpg ├── makefile ├── package.json ├── readme.md ├── security.md ├── src ├── color │ ├── Color.ts │ ├── FinalColor.ts │ ├── LeafGroup.ts │ └── RootGroup.ts ├── extract │ ├── cleanInputs.ts │ └── extractor.ts ├── extractColors.ts ├── global.d.ts ├── helpers.ts ├── sort │ ├── AverageGroup.ts │ ├── AverageManager.ts │ └── sortColors.ts ├── types │ ├── Color.ts │ ├── NodeImageData.ts │ └── Options.ts ├── worker.ts └── workerWrapper.ts └── tests ├── averageGroup.ts ├── averageManager.ts ├── browser.ts ├── cleanInput.ts ├── color.ts ├── extractor.ts ├── extractorColorsCjs.ts ├── finalColors.ts ├── leafGroup.ts ├── namide-world.jpg ├── node.ts ├── rootGroup.ts └── sortColors.ts /.editorconfig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Namide/extract-colors/HEAD/.editorconfig -------------------------------------------------------------------------------- /.github/workflows/npm-publish.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Namide/extract-colors/HEAD/.github/workflows/npm-publish.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Namide/extract-colors/HEAD/.gitignore -------------------------------------------------------------------------------- /.npmignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Namide/extract-colors/HEAD/.npmignore -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Namide/extract-colors/HEAD/LICENSE -------------------------------------------------------------------------------- /changelog.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Namide/extract-colors/HEAD/changelog.md -------------------------------------------------------------------------------- /codecov.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Namide/extract-colors/HEAD/codecov.yml -------------------------------------------------------------------------------- /conf/biome.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Namide/extract-colors/HEAD/conf/biome.json -------------------------------------------------------------------------------- /conf/eslint.config.mjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Namide/extract-colors/HEAD/conf/eslint.config.mjs -------------------------------------------------------------------------------- /conf/tsconfig.base.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Namide/extract-colors/HEAD/conf/tsconfig.base.json -------------------------------------------------------------------------------- /conf/tsconfig.type.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Namide/extract-colors/HEAD/conf/tsconfig.type.json -------------------------------------------------------------------------------- /conf/tsconfig.vite.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Namide/extract-colors/HEAD/conf/tsconfig.vite.json -------------------------------------------------------------------------------- /conf/vite.config.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Namide/extract-colors/HEAD/conf/vite.config.test.ts -------------------------------------------------------------------------------- /conf/vite.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Namide/extract-colors/HEAD/conf/vite.config.ts -------------------------------------------------------------------------------- /conf/vite.config.worker.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Namide/extract-colors/HEAD/conf/vite.config.worker.ts -------------------------------------------------------------------------------- /doc/colors-2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Namide/extract-colors/HEAD/doc/colors-2.jpg -------------------------------------------------------------------------------- /makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Namide/extract-colors/HEAD/makefile -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Namide/extract-colors/HEAD/package.json -------------------------------------------------------------------------------- /readme.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Namide/extract-colors/HEAD/readme.md -------------------------------------------------------------------------------- /security.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Namide/extract-colors/HEAD/security.md -------------------------------------------------------------------------------- /src/color/Color.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Namide/extract-colors/HEAD/src/color/Color.ts -------------------------------------------------------------------------------- /src/color/FinalColor.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Namide/extract-colors/HEAD/src/color/FinalColor.ts -------------------------------------------------------------------------------- /src/color/LeafGroup.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Namide/extract-colors/HEAD/src/color/LeafGroup.ts -------------------------------------------------------------------------------- /src/color/RootGroup.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Namide/extract-colors/HEAD/src/color/RootGroup.ts -------------------------------------------------------------------------------- /src/extract/cleanInputs.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Namide/extract-colors/HEAD/src/extract/cleanInputs.ts -------------------------------------------------------------------------------- /src/extract/extractor.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Namide/extract-colors/HEAD/src/extract/extractor.ts -------------------------------------------------------------------------------- /src/extractColors.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Namide/extract-colors/HEAD/src/extractColors.ts -------------------------------------------------------------------------------- /src/global.d.ts: -------------------------------------------------------------------------------- 1 | declare const __DEV__: boolean; 2 | -------------------------------------------------------------------------------- /src/helpers.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Namide/extract-colors/HEAD/src/helpers.ts -------------------------------------------------------------------------------- /src/sort/AverageGroup.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Namide/extract-colors/HEAD/src/sort/AverageGroup.ts -------------------------------------------------------------------------------- /src/sort/AverageManager.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Namide/extract-colors/HEAD/src/sort/AverageManager.ts -------------------------------------------------------------------------------- /src/sort/sortColors.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Namide/extract-colors/HEAD/src/sort/sortColors.ts -------------------------------------------------------------------------------- /src/types/Color.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Namide/extract-colors/HEAD/src/types/Color.ts -------------------------------------------------------------------------------- /src/types/NodeImageData.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Namide/extract-colors/HEAD/src/types/NodeImageData.ts -------------------------------------------------------------------------------- /src/types/Options.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Namide/extract-colors/HEAD/src/types/Options.ts -------------------------------------------------------------------------------- /src/worker.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Namide/extract-colors/HEAD/src/worker.ts -------------------------------------------------------------------------------- /src/workerWrapper.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Namide/extract-colors/HEAD/src/workerWrapper.ts -------------------------------------------------------------------------------- /tests/averageGroup.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Namide/extract-colors/HEAD/tests/averageGroup.ts -------------------------------------------------------------------------------- /tests/averageManager.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Namide/extract-colors/HEAD/tests/averageManager.ts -------------------------------------------------------------------------------- /tests/browser.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Namide/extract-colors/HEAD/tests/browser.ts -------------------------------------------------------------------------------- /tests/cleanInput.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Namide/extract-colors/HEAD/tests/cleanInput.ts -------------------------------------------------------------------------------- /tests/color.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Namide/extract-colors/HEAD/tests/color.ts -------------------------------------------------------------------------------- /tests/extractor.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Namide/extract-colors/HEAD/tests/extractor.ts -------------------------------------------------------------------------------- /tests/extractorColorsCjs.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Namide/extract-colors/HEAD/tests/extractorColorsCjs.ts -------------------------------------------------------------------------------- /tests/finalColors.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Namide/extract-colors/HEAD/tests/finalColors.ts -------------------------------------------------------------------------------- /tests/leafGroup.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Namide/extract-colors/HEAD/tests/leafGroup.ts -------------------------------------------------------------------------------- /tests/namide-world.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Namide/extract-colors/HEAD/tests/namide-world.jpg -------------------------------------------------------------------------------- /tests/node.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Namide/extract-colors/HEAD/tests/node.ts -------------------------------------------------------------------------------- /tests/rootGroup.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Namide/extract-colors/HEAD/tests/rootGroup.ts -------------------------------------------------------------------------------- /tests/sortColors.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Namide/extract-colors/HEAD/tests/sortColors.ts --------------------------------------------------------------------------------