Skip to content

A simple python script that lets you convert Hex codes to the AARRGGBB format.

License

Notifications You must be signed in to change notification settings

krple/Hex-To-AARRGGBB

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

Hex Codes to AARRGGBB Converter

Description

This is a compact and efficient Python script that allows you to convert hexadecimal color codes to the AARRGGBB format. This format is commonly used in programming contexts to represent colors with an added alpha (transparency) value.

🚀 Features

  • Converts hexadecimal color codes to the AARRGGBB format.
  • Supports both uppercase and lowercase hexadecimal input.
  • Provides input validation for accurate processing.
  • Offers a simple and intuitive command-line interface.
  • Optimal code design with only 9 lines of code.

📝 Installation and Usage

  1. Clone, download the repository, or download the .py file from the Releases tab
  2. Run the script using your preferred Python interpreter.
  3. Enter a valid hexadecimal color code (with or without "#" symbol) when prompted.
  4. The script will display the corresponding AARRGGBB color format.

🎯 Example:

Input: Enter a Hex Code (or 'exit'): ffaa00

Output: AARRGGBB: FFFFAA00

Feel free to use and modify this script for your projects. If you find it helpful, please consider giving it a star!

🤝 Contributions

Contributions, suggestions, and improvements are welcome! Feel free to fork the repository and create pull requests.

About

A simple python script that lets you convert Hex codes to the AARRGGBB format.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages