all the gauges for uismelter

This commit is contained in:
minjaesong
2024-01-30 01:37:03 +09:00
parent a027506ad2
commit 9fa28760fa
4 changed files with 83 additions and 9 deletions

View File

@@ -30,7 +30,6 @@ fun Color.darkerLuv(scale: Float): Color {
return luv.toColor()
}
/** Tend to have more vivid (or saturated) colour */
fun cieluv_getGradient(scale: Float, fromCol: Color, toCol: Color): Color {
val from = fromCol.toLuv()
val to = toCol.toLuv()
@@ -39,7 +38,7 @@ fun cieluv_getGradient(scale: Float, fromCol: Color, toCol: Color): Color {
val newV = FastMath.interpolateLinear(scale, from.v, to.v)
val newAlpha = FastMath.interpolateLinear(scale, from.alpha, to.alpha)
return CIELab(newL, newU, newV, newAlpha).toColor()
return CIELuv(newL, newU, newV, newAlpha).toColor()
}
/**