blish-hud / Pathing

[Module] The official pathing module which adds marker and trail support to Blish HUD.
https://blishhud.com/docs/markers/
MIT License
13 stars 10 forks source link

Use ColorThief to determine the dominant color of a trail's texture #39

Closed Stonos closed 2 years ago

Stonos commented 2 years ago

This commit introduces a dependency to ColorThief in order to more accurately detect a trail's texture dominant color (which is used when drawing a trail on the map).

The change is especially visible in some of Teh's World Completion trail colors, where the previous algorithm would produce a gray color, while the new one produces a color that's much closer to the trail's texture:

Blue trail:

Before After
Blue trail before Blue trail after

Pink trail:

Before After
Pink trail before Pink trail after
dlamkins commented 2 years ago

This seems pretty cool! I'll review. 👍