You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug lerp function throws an exception IllegalArgumentException. This is a result of the lerp function converting to the LAB colorspace, and then attempting to convert to back to sRBG color space. See stack below:
Caused by: java.lang.IllegalArgumentException: RgbaColor needs to have a ColorModel of RGB
at com.chrynan.colors.BaseRgbaColor.<init>(BaseRgbaColor.kt:13)
at com.chrynan.colors.BaseRgbaColor.<init>(Unknown Source:0)
at com.chrynan.colors.ColorConstructorUtilsKt.RgbaColor(ColorConstructorUtils.kt:245)
at com.chrynan.colors.ColorUtilsKt.lerp(ColorUtils.kt:103)
To Reproduce
Steps to reproduce the behavior:
Invoke this function
funtest(color:Long): Color {
return lerp(Color(color), Color.White, 50.0)
}
Expected behavior
Return the linear interpolated color
Additional context
Utilizing in KMM project
The text was updated successfully, but these errors were encountered:
Describe the bug
lerp
function throws an exceptionIllegalArgumentException
. This is a result of the lerp function converting to theLAB
colorspace, and then attempting to convert to back to sRBG color space. See stack below:To Reproduce
Steps to reproduce the behavior:
Expected behavior
Return the linear interpolated color
Additional context
Utilizing in KMM project
The text was updated successfully, but these errors were encountered: