python-color-picker is a Visual Studio Code extension that provides color previews and a color picker for Python files. This extension recognizes color values defined in various formats, such as hex codes (#FFFFFF) and RGB tuples ((255, 255, 255)), and displays a color preview next to the color value in your code.
Features
Automatically detects color values in Python files.
Supports hex color codes (e.g., #FFFFFF) and RGB tuples (e.g., (255, 255, 255)).
Displays a color preview next to the color value.
Provides a color picker for easy color selection and modification.
Usage
Once installed, the extension will automatically detect color values in your Python files and display a color preview next to them.
Supported Color Formats
Hex color codes: "#RRGGBB"
RGB tuples: (R, G, B)
RGBA tuples: (R, G, B, A)
Example
SKY = "#87CEEB"
ROSE = (255, 29, 141)
WINDOW = (19, 109, 21, 0.75)
Acknowledgements
This extension is built with the help of the Visual Studio Code Extension API and inspired by similar extensions for other programming languages.