79095120

Date: 2024-10-16 17:13:21
Score: 0.5
Natty:
Report link

Adding onto

Blockquote

Adding onto this answer, I had hex strings in the form '#DDDDDD' which required some type wrangling

    const hex: number = parseInt(color.slice(-6), 16);
    const complement = 0xffffff ^ hex;
    const hexColor = '#' + ('000000' + complement.toString(16)).slice(-6);
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Kevin Connors