Color Maker is a simple, interactive GUI application built using customtkinter that allows users to create, store, and save custom colors by adjusting RGB sliders. Users can preview their selected colors in real-time and save them for later use.
- RGB Sliders: Adjust red, green, and blue values using intuitive vertical sliders.
- Real-Time Preview: View the color generated by the current RGB values in a dedicated preview box.
- Predefined Colors: Quickly select predefined colors like Red, Green, Blue, Yellow, Cyan, and Magenta.
- Store Colors: Save up to 6 custom colors for later recall.
- Hexadecimal Representation: Display the hexadecimal equivalent of the selected RGB values.
- Save Colors: Export stored colors to a
.txtfile for future reference.
- Python 3.7 or higher
customtkinterlibrary installed
-
Clone the repository:
git clone https://github.com/Poyamohamadi/color_maker.git cd color_maker -
Install the required dependencies:
pip install customtkinter
-
Run the application:
python main.py
-
Adjusting RGB Values:
- Use the vertical sliders to adjust the red, green, and blue values.
- The color preview box will update in real-time as you move the sliders.
-
Selecting Predefined Colors:
- Click on the buttons for predefined colors (e.g., Red, Green, Blue) to instantly set the sliders to those values.
-
Storing Colors:
- After creating a custom color, click the "Store Color" button to save it.
- Up to 6 colors can be stored at a time.
-
Recalling Colors:
- Select a stored color using the radio buttons in the output frame.
- Click the "Recall Color" button to restore the RGB values for the selected color.
-
Saving Colors:
- Click the "Save" button to export all stored colors to a
.txtfile.
- Click the "Save" button to export all stored colors to a
-
Exiting the Application:
- Click the "Quit" button to close the application.
The project is organized into a single Python script (main.py) with the following structure:
-
Class
MyApp:- Initializes the main application window.
- Defines the layout and widgets for input and output frames.
- Implements methods for handling slider updates, color storage, and saving functionality.
-
Methods:
update_color: Updates the color preview and displays RGB/hex values.get_red,get_green,get_blue: Convert slider values to hexadecimal format.set_color: Sets the sliders to predefined RGB values.store_color: Saves the current color for later recall.save_colors: Exports stored colors to a file.
- Python: Version 3.6 or higher.
- customtkinter: A modern GUI library for Python. Install it using:
pip install customtkinter
Contributions are welcome! If you'd like to improve this project, feel free to:
- Fork the repository.
- Create a new branch for your feature or bug fix.
- Commit your changes and push them to your fork.
- Submit a pull request detailing your changes.
Please ensure your code adheres to the existing style and includes appropriate documentation.
This project is licensed under the MIT License. See the LICENSE file for details.
-
CustomTkinter Library: Thanks to the developers of
customtkinterfor creating a modern and customizable GUI toolkit. -
Python Community: Special thanks to the Python community for their support and resources.
For questions or feedback, feel free to reach out:
- GitHub: Poyamohamadi
Thank you for using Color Maker Application! 😊
