mitre-attack / attack-navigator

Web app that provides basic navigation and annotation of ATT&CK matrices
https://mitre-attack.github.io/attack-navigator
Apache License 2.0
1.97k stars 584 forks source link

Techniques color adding hexadecimal values #303

Open fhidalg0 opened 3 years ago

fhidalg0 commented 3 years ago

As a user that uses ATT&CK navigator and it matrices as a purple team reporting tool when creating a matrix from composition of other matrices I would like to have the possibility of being able to get the color of the addition of the hexadecimal color values of the cells, instead of the score.

This way the light red plus light blue would be light purple, ligh red with strong blue, would be a less strong purple. With this functionality we will not lose the color gradient information. Also a red cell plus a white cell will be red, insted of having it purple using the scoring addition with gradients.

Losing gradient colors can done setting just 3 values red, blue and purple and giving 1, 2 and 3 score values. I hope it makes sense :)

Thanks

isaisabel commented 3 years ago

I like this idea, but I think what you're describing is averaging colors instead of "adding" colors. Adding would result in the sum of each channel (r, g, b) which wouldn't result in a new color between the two colors but a new one higher then both the inputs. Adding would also allow colors to escape the color space (e.g a value of 255 added to 15 would end up outside of the range allowed in RGB space).

fhidalg0 commented 3 years ago

Thanks @isaisabel

Hehe, I did not dig as deep as you in colour mixing, I guess your specificacion will work. The end goal would be to mix both colours.