Skip to content

#35 Fix and improve parse color function#36

Merged
Alex009 merged 1 commit intoicerockdev:developfrom
NonoxyS:#35-fix-parse-hex-color
Jun 16, 2025
Merged

#35 Fix and improve parse color function#36
Alex009 merged 1 commit intoicerockdev:developfrom
NonoxyS:#35-fix-parse-hex-color

Conversation

@NonoxyS
Copy link
Contributor

@NonoxyS NonoxyS commented Jun 6, 2025

Now this function supports multiple hex color formats with optional hash prefix:

  • 3 digits (RGB): Each digit is expanded to two digits (e.g., "F0A" → "FF00AA")
  • 4 digits (ARGB): Each digit is expanded to two digits (e.g., "8F0A" → "88FF00AA")
  • 6 digits (RRGGBB): Standard RGB format with full alpha (255)
  • 8 digits (AARRGGBB): Full ARGB format with explicit alpha channel

Now this function supports multiple hex color formats with optional hash prefix:
3 digits (RGB): Each digit is expanded to two digits (e.g., "F0A" → "FF00AA")
4 digits (ARGB): Each digit is expanded to two digits (e.g., "8F0A" → "88FF00AA")
6 digits (RRGGBB): Standard RGB format with full alpha (255)
8 digits (AARRGGBB): Full ARGB format with explicit alpha channel
@NonoxyS NonoxyS changed the base branch from master to develop June 6, 2025 00:26
@Alex009 Alex009 merged commit 9242c6a into icerockdev:develop Jun 16, 2025
3 checks passed
@Alex009 Alex009 added this to the 0.10.1 milestone Jun 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants