Skip to content

Dither Go! v0.2.0

Compare
Choose a tag to compare
@tfuxu tfuxu released this 04 Sep 16:26
· 14 commits to master since this release
58be810

Dither Go! v0.2.0

This release contains a simpler interface for creating custom color palettes using create_palette function. Now you can use either a list of RGBA color channels or hexadecimal color codes to represent colors used in dithered images (you can also mix formats).

Example:

palette = dither_go.create_palette([
    "#000000",  # Standard hex code
    [255, 255, 255, 255],  # RGB list with fourth alpha channel
    "#FF0000FF",  # Extended hex code
])

Supported color formats:

  • RGBA:
    • 3-channel list: [64, 128, 255]
    • 4-channel list: [12, 24, 36, 48]
  • Hexadecimal color code:
    • Small form: #128
    • Normal form: #adfbea
    • Extended form: #deadbeef

What's Changed

  • Fix compilation issues in build_wheel workflow by @tfuxu in #4
  • Simplify color palette creation by @tfuxu in #5

New Contributors

  • @tfuxu made their first contribution in #4

Full Changelog: https://github.com/tfuxu/dither-go/commits/v0.2.0