code: private static double applyColorDeficiencyCorrection(double angle, Deficiency deficiency) {
          switch (deficiency) {
              case none:
                  break;
              case redGreenBlindness:
                  angle %= Math.PI;
                  break;
              case blueBlindness:
                  angle -= Math.PI / 2;
                  angle %= Math.PI;
                  angle += Math.PI / 2;
                  break;
          }
          return angle;
      }
docs: Apply correction for color vision deficiencies to an angle in the CbCr plane.
  @see <a href="https://xmpp.org/extensions/xep-0392.html#algorithm-cvd">§5.2: Corrections for Color Vision Deficiencies</a>
  
  @param angle angle in CbCr plane
  @param deficiency type of vision deficiency
  @return corrected angle in CbCr plane