css-colorguard icon indicating copy to clipboard operation
css-colorguard copied to clipboard

Alpha transparency

Open ben-eb opened this issue 9 years ago • 6 comments

Just leaving this as a note to get back to when I (or anyone else, PR welcome) have time.

https://github.com/markusn/color-diff/issues/8#issuecomment-143502751

ben-eb avatar Jan 24 '16 11:01 ben-eb

There should be an option to ignore alpha so #000 and rgba(0, 0, 0, 0.3) are considered different.

bjb568 avatar May 01 '16 20:05 bjb568

I would expect this to be the default behavior.

captbaritone avatar May 09 '16 19:05 captbaritone

@captbaritone do you have a suggestion on how to implement it safely?

#000 and rgba(0,0,0,0.3) may be exactly the same, or very different depending on the color of the element behind it.

SlexAxton avatar May 09 '16 22:05 SlexAxton

Can we just multiply diffAmount by the difference between the alpha сhannel values of colors?

Sigiller avatar Jun 22 '16 11:06 Sigiller

@Sigiller @kbytin @XOP do you want to send PR for it?

ai avatar Aug 10 '16 21:08 ai

not in the nearest future, sorry

XOP avatar Aug 10 '16 22:08 XOP