Skip to content

Poyamohamadi/Color_Maker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Color Maker Application

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.


Table of Contents

  1. Features
  2. Installation
  3. Usage
  4. Structure
  5. Dependencies
  6. Contributing
  7. License

Program Demo

Color Maker

Features

  • 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 .txt file for future reference.

Installation

Prerequisites

  • Python 3.7 or higher
  • customtkinter library installed

Steps

  1. Clone the repository:

    git clone https://github.com/Poyamohamadi/color_maker.git
    cd color_maker
  2. Install the required dependencies:

    pip install customtkinter
  3. Run the application:

    python main.py

Usage

  1. 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.
  2. Selecting Predefined Colors:

    • Click on the buttons for predefined colors (e.g., Red, Green, Blue) to instantly set the sliders to those values.
  3. 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.
  4. 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.
  5. Saving Colors:

    • Click the "Save" button to export all stored colors to a .txt file.
  6. Exiting the Application:

    • Click the "Quit" button to close the application.

Structure

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.

Dependencies

  • Python: Version 3.6 or higher.
  • customtkinter: A modern GUI library for Python. Install it using:
    pip install customtkinter

Contributing

Contributions are welcome! If you'd like to improve this project, feel free to:

  1. Fork the repository.
  2. Create a new branch for your feature or bug fix.
  3. Commit your changes and push them to your fork.
  4. Submit a pull request detailing your changes.

Please ensure your code adheres to the existing style and includes appropriate documentation.


License

This project is licensed under the MIT License. See the LICENSE file for details.


Acknowledgments

  • CustomTkinter Library: Thanks to the developers of customtkinter for creating a modern and customizable GUI toolkit.

  • Python Community: Special thanks to the Python community for their support and resources.


Contact

For questions or feedback, feel free to reach out:


Thank you for using Color Maker Application! 😊

About

Color Maker - Python🐍 CustomTkinter

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages