blurhash-as icon indicating copy to clipboard operation
blurhash-as copied to clipboard

Feat: get average color

Open ThatOneCalculator opened this issue 1 year ago • 3 comments

fast-blurhash has a useful function called getBlurHashAverageColor that, as the name implies, gets the average color from the blurhash as an array of 3 r, g, and b integer values.

ThatOneCalculator avatar Jul 14 '23 02:07 ThatOneCalculator

Interesting. Do you have a link to the implementation?

lxsmnsyc avatar Jul 14 '23 05:07 lxsmnsyc

https://github.com/mad-gooze/fast-blurhash/blob/main/index.js#L44

ThatOneCalculator avatar Jul 14 '23 08:07 ThatOneCalculator

Thanks! I'll look into it

lxsmnsyc avatar Jul 14 '23 10:07 lxsmnsyc