Skip to content

v0.3.1: Support for 8-digit Hex Codes with Alpha Channel

Choose a tag to compare

@AnttiRask AnttiRask released this 04 Jan 00:53
· 45 commits to main since this release

Enhancements

  • hex_to_color(): Now accepts 8-digit hex codes with alpha channel
    • Automatically strips alpha channel from #RRGGBBAA format codes
    • Maintains backward compatibility with 6-digit #RRGGBB format
    • Works seamlessly with paletteer and other packages that output colors with transparency

Testing

  • Added 7 new tests for 8-digit hex code support in hex_to_color()
  • All 111 tests passing

Installation

# Install from GitHub
devtools::install_github("AnttiRask/col2hex2col@v0.3.1")

Example

library(col2hex2col)

# Now works with paletteer output that includes alpha channel
library(paletteer)
paletteer_dynamic("cartography::sand.pal", 20) %>% hex_to_color()

🤖 Generated with Claude Code