smooth the warm damping so switching artwork does not flash

This commit is contained in:
austinried
2026-10-04 00:29:56 +00:00
parent 5e00bf86a8
commit d1b5aaeeb7
2 changed files with 12 additions and 9 deletions
@@ -60,11 +60,9 @@ class ArtworkColorsTest {
}
@Test
fun warmArtworkLiftsPlayerSurfaceToTheBrightGradientTone() {
fun warmArtworkKeepsThePlayerSurfaceDark() {
val warm = artworkColorsFromSeed(0xFFE6C822.toInt())
val cool = artworkColorsFromSeed(0xFF3A7BD5.toInt())
assertEquals(warm.gradientHigh, playerSurfaceColor(warm))
assertTrue(playerSurfaceColor(cool) != cool.gradientHigh)
assertTrue(playerSurfaceColor(warm).luminance() < 0.1f)
}
private fun contrast(