Home
last modified time | relevance | path

Searched refs:newColor (Results 1 – 2 of 2) sorted by relevance

/ink/ink-brush/src/jvmAndroidTest/kotlin/androidx/ink/brush/
DBrushTest.kt254 val newColor = Color(red = 255, green = 230, blue = 115, alpha = 140).value.toLong() in copyWithColorLong_withChangedColor_returnsCopyWithThatColor() constant
255 val newBrush = originalBrush.copyWithColorLong(colorLong = newColor) in copyWithColorLong_withChangedColor_returnsCopyWithThatColor()
259 assertThat(newBrush.colorLong).isEqualTo(newColor) in copyWithColorLong_withChangedColor_returnsCopyWithThatColor()
271 val newColor = Color(0.9f, 0.45f, 0.55f, 0.15f, ColorSpaces.AdobeRgb).value.toLong() in copyWithColorLong_inUnsupportedColorSpace_returnsCopyWithConvertedColor() constant
272 val newBrush = originalBrush.copyWithColorLong(colorLong = newColor) in copyWithColorLong_inUnsupportedColorSpace_returnsCopyWithConvertedColor()
274 val expectedColor = Color(newColor.toULong()).convert(ColorSpaces.DisplayP3) in copyWithColorLong_inUnsupportedColorSpace_returnsCopyWithConvertedColor()
/ink/ink-brush/src/androidInstrumentedTest/kotlin/androidx/ink/brush/
DBrushExtensionsTest.kt90 val newColor = AndroidColor.valueOf(0.6f, 0.7f, 0.4f, 0.3f, adobeRgb) in brushCopyWithAndroidColor_withUnsupportedColorSpace_setsConvertedColor() constant
91 val newBrush = brush.copyWithAndroidColor(color = newColor) in brushCopyWithAndroidColor_withUnsupportedColorSpace_setsConvertedColor()
94 val expectedColor = AndroidColor.valueOf(newColor.pack()).convert(displayP3) in brushCopyWithAndroidColor_withUnsupportedColorSpace_setsConvertedColor()