terribleMia’s avatarterribleMia’s Twitter Archive—№ 7,558

      1. Does anyone know why I get different results from JS Math.atan2(y, x) and SassCSS math.atan2($y, $x) (besides Sass adding degree units, the number is entirely different)
    1. …in reply to @TerribleMia
      ooooh, degrees are the difference. The JS result is in fractions of a turn… 45deg == 0.25
  1. …in reply to @TerribleMia
    🎉 Tests are passing! ✓ lin_sRGB() ✓ gam_sRGB() ✓ lin_sRGB_to_XYZ() ✓ XYZ_to_lin_sRGB() ✓ lin_P3_to_XYZ() ✓ XYZ_to_lin_P3() ✓ lin_ProPhoto() ✓ gam_ProPhoto() ✓ D65_to_D50() ✓ D50_to_D65() ✓ XYZ_to_Lab() ✓ Lab_to_XYZ() ✓ Lab_to_LCH() ✓ LCH_to_Lab()
    1. …in reply to @TerribleMia
      to get there I also had to write matrix math functions, which 😳🤯