From f04f7b5da9c1404611f4b0ef31465b783ee20400 Mon Sep 17 00:00:00 2001 From: Jon Pretty Date: Thu, 23 Jan 2025 21:26:28 +0100 Subject: [PATCH] Eliminated long lines --- src/core/iridescence.colorProfiles.scala | 10 ++++++++-- src/test/iridescence.Tests.scala | 14 +++++++------- 2 files changed, 15 insertions(+), 9 deletions(-) diff --git a/src/core/iridescence.colorProfiles.scala b/src/core/iridescence.colorProfiles.scala index 8c6536a..c4e6dbc 100644 --- a/src/core/iridescence.colorProfiles.scala +++ b/src/core/iridescence.colorProfiles.scala @@ -32,14 +32,20 @@ object colorProfiles: given daylightFluorescentF1: ColorProfile = ColorProfile(92.834, 100, 103.665, 94.791, 100, 103.191) given coolFluorescent: ColorProfile = ColorProfile(99.187, 100, 67.395, 103.280, 100, 69.026) given whiteFluorescent: ColorProfile = ColorProfile(103.754, 100, 49.861, 108.968, 100, 51.965) - given warmWhiteFluorescent: ColorProfile = ColorProfile(109.147, 100, 38.813, 114.961, 100, 40.963) + + given warmWhiteFluorescent: ColorProfile = + ColorProfile(109.147, 100, 38.813, 114.961, 100, 40.963) + given daylightFluorescentF5: ColorProfile = ColorProfile(90.872, 100, 98.723, 93.369, 100, 98.636) given liteWhiteFluorescent: ColorProfile = ColorProfile(97.309, 100, 60.191, 102.148, 100, 62.074) given daylightFluorescentF7: ColorProfile = ColorProfile(95.044, 100, 108.755, 95.792, 100, 107.687) given d65Simulator: ColorProfile = daylightFluorescentF7 given sylvaniaF40: ColorProfile = ColorProfile(96.413, 100, 82.333, 97.115, 100, 81.135) given d50Simulator: ColorProfile = sylvaniaF40 - given coolWhiteFluorescent: ColorProfile = ColorProfile(100.365, 100, 67.868, 102.116, 100, 67.826) + + given coolWhiteFluorescent: ColorProfile = + ColorProfile(100.365, 100, 67.868, 102.116, 100, 67.826) + given philipsTl85: ColorProfile = ColorProfile(96.174, 100, 81.712, 99.001, 100, 83.134) given ultralume50: ColorProfile = philipsTl85 given philipsTl84: ColorProfile = ColorProfile(100.966, 100, 64.370, 103.866, 100, 65.627) diff --git a/src/test/iridescence.Tests.scala b/src/test/iridescence.Tests.scala index 1108910..b55ee57 100644 --- a/src/test/iridescence.Tests.scala +++ b/src/test/iridescence.Tests.scala @@ -32,19 +32,19 @@ object Tests extends Suite(t"Iridescence tests"): // test(t"HSV to sRGB and back"): // color.srgb.hsv.srgb.hsv // .assert(_ ~~ color.srgb.hsv) - + // test(t"sRGB to CMY and back"): // color.srgb.cmy.srgb // .assert(_ ~~ color.srgb) - + // test(t"sRGB to CMYK and back"): // color.srgb.cmyk.srgb // .assert(_ ~~ color.srgb) - + // test(t"sRGB to XYZ and back"): // color.srgb.xyz.srgb // .assert(_ ~~ color.srgb) - + // test(t"sRGB to HSL and back"): // color.srgb.hsl.srgb // .assert(_ ~~ color.srgb) @@ -53,15 +53,15 @@ object Tests extends Suite(t"Iridescence tests"): test(t"Read a hex value with a leading hash"): rgb"#abcdef" .assert(_ == Rgb24(171, 205, 239)) - + test(t"Read a hex value without a leading hash"): rgb"abcdef" .assert(_ == Rgb24(171, 205, 239)) - + test(t"Read black"): rgb"#000000" .assert(_ == Rgb24(0, 0, 0)) - + test(t"Read white"): rgb"#ffffff" .assert(_ == Rgb24(255, 255, 255))