Closed sda030 closed 4 months ago
Which I would use with after_scale
geom_text(aes(colour = after_scale(x = hex_bw(.data$fill)))
Thanks for the proposal. This is a good idea. I will look at it next week
feature added. You can test the dev version
Works well!
Having darker shades in the palette with black text is not the best.![image](https://github.com/larmarange/ggstats/assets/13221371/236dab01-efec-440a-b8d7-8bb6566a3d10)
The code for inversing font colour is quite simple and fast: