https://kotlinlang.org logo
#compose
Title
# compose
u

ursus

03/01/2024, 5:27 PM
Anyone noticed this? Left is android emulator, right is ios simulator It's the same image, yet the colors look different, why?
a

andrew

03/01/2024, 5:29 PM
iPhone probably uses a different color space
1
It's unavoidable, different screens are calibrated differently, OSes might have different color spaces selected by default
u

ursus

03/01/2024, 5:31 PM
well its a screenshot from my mac, both next to each other
a

andrew

03/01/2024, 6:16 PM
Yes, but different applications can use different color spaces
The iOS sim probably uses the native color space, the android emulator probably uses a different one, considering it's being rendered in a swing/awt context
Or it could be android os itself using a different color space when rendering
I wouldn't worry too heavily about it
u

ursus

03/01/2024, 6:21 PM
okay so its the simulator vs emulator debate
a

andrew

03/01/2024, 6:22 PM
Android is probably using sRGB or something, iOS is probably truetone
1
That's just my guess