Skip to content

Application where the user can see a picture's color palette by uploading it

Notifications You must be signed in to change notification settings

caio2983/ColorPallette

Repository files navigation

Color Palette Finder 🎨🖌️

React Badge

Application where the user can see a picture's color palette by uploading it.

The picture is "The Fallen Angel" by Alexandre Cabanel.It depicts a striking and melancholic figure of a fallen angel, representing the themes of loss and beauty. The angel, with exquisite features and delicate wings, sits in a contemplative pose, embodying both grace and sorrow. The play of light and shadow enhances the angel's ethereal beauty while highlighting the sadness of its exile. The painting captures the tension between divine beauty and human vulnerability, inviting viewers to reflect on the complexity of existence and the nature of redemption. (chat gpt 👍)


🎃🪦🕸️

Technologies ⚙️

Project Made with React while I was learning NextJS' basics.The image's color palette is found through a JavaScript algorithm that uses a technique called Color Quantization.Wikipedia describes Color Quantizationn as:

"A process that reduces the number of distinct colors used in an image, usually with the intention that the new image should be as visually similar as possible to the original image."

The code generates a gigantic array with the RGBs of every pixel in the image.The algorithm then uses color quantization to reduce the number of items in that array,while maintaining the color set visually similar to the original set.

This is a Next.js project bootstrapped with create-next-app.

Getting Started

npm install to install the dependencies

First, run the development server:

npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun dev

Open http://localhost:3000 with your browser to see the result.

You can start editing the page by modifying app/page.tsx. The page auto-updates as you edit the file.

This project uses next/font to automatically optimize and load Inter, a custom Google Font.

Learn More

To learn more about Next.js, take a look at the following resources:

You can check out the Next.js GitHub repository - your feedback and contributions are welcome!

Deploy on Vercel

The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.

Check out our Next.js deployment documentation for more details.

About

Application where the user can see a picture's color palette by uploading it

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published