Skip to content

adithya-adee/ColorQuest

Repository files navigation

ColorQuest

ColorQuest is a dynamic color picker application built using Svelte and HTML5 Canvas. It allows users to select colors by pointing the mouse at specific pixels in the color selection area and to adjust colors by changing the hex code. The application updates the preview in real-time as the hex code changes or the user interacts with the canvas.

Features

  • Interactive Color Picker: Select colors by hovering over the canvas with your mouse.
  • Hex Code Input: Change the color of the preview div by editing the hex code.
  • Real-time Updates: Automatically update the color across multiple formats (RGB, HSL, HSV, CMYK) when a color is selected.
  • Svelte-based: Leverages the reactivity of Svelte for an optimized, performant color picking experience.
  • Canvas-based Rendering: Uses the HTML5 canvas element to render the color picker, ensuring smooth interaction and rendering of the color gradients.

Installation

Clone this repository to your local machine: You can type the following command in your terminal and select the folder which you want to clone this repo. Then enter the following commands

git clone https://github.com/adithya-adee/ColorQuest.git
npm install
npm run dev

Usage

Move your mouse over the canvas to select a color. Change the hex code directly in the input field to update the preview color. The color updates across different formats including RGB, HSL, HSV, and CMYK. License This project is licensed under the MIT License. See the LICENSE file for details.

References

  1. Svelte Documentation
  1. HTML5 Canvas Documentation
  1. Color Conversion Library

Acknowledgments

Special thanks to my friend for inspiring this project and helping me in Canvas.

Link to the Screen Recording

2024-10-12.17-10-20.mp4

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors