We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I'd like to have an extra .hex property in the Color object, that contains a string representing the hexadecimal color code. eg.
.hex
>>> print(my_color.hex) '#0A1FB5'
The text was updated successfully, but these errors were encountered:
I first thought I needed this too, but then remembered that CSS supports RGB colors too. So converting a Color object to one usable in CSS is just:
css_color = f"rgb({color.rgb.r}, {color.rgb.g}, {color.rgb.b})"
Sorry, something went wrong.
I would second this, but also include HSB/HSV, HCL, HCB/HCV, YCbCr, YCoCg, and others. Who wanna do a pull request? This should be easy as PIE
No branches or pull requests
I'd like to have an extra
.hex
property in the Color object, that contains a string representing the hexadecimal color code.eg.
The text was updated successfully, but these errors were encountered: