mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-07-09 10:11:42 +00:00
fix color space
This commit is contained in:
committed by
another-simple-pixel
parent
517611965e
commit
d2ef085470
+1
-1
@@ -10,7 +10,7 @@ import kotlin.math.sin
|
||||
|
||||
fun oklch(L: Float, C: Float, H: Float, alpha: Float = 1f): Color {
|
||||
val hRad = H * (Math.PI.toFloat() / 180f)
|
||||
return Color(L, C * cos(hRad), C * sin(hRad), alpha, ColorSpaces.Oklab)
|
||||
return Color(L, C * cos(hRad), C * sin(hRad), alpha, ColorSpaces.Oklab).convert(ColorSpaces.DisplayP3)
|
||||
}
|
||||
|
||||
val Indigo = Color(0xFF9966FF)
|
||||
|
||||
Reference in New Issue
Block a user