seb
07/19/2023, 10:15 AMFilip Wiesner
07/19/2023, 10:31 AM#FF0000 is just 0xFFFF0000seb
07/19/2023, 10:31 AMromainguy
07/19/2023, 2:41 PMephemient
07/19/2023, 3:51 PMandroidx.compose.ui.graphics.Color(Long) overload makes the .toInt() unnecessary though, doesn't it?ephemient
07/19/2023, 3:52 PMThis is useful for specifying colors with alpha greater than 0x80 in numeric form without using `Long.toInt`:
romainguy
07/19/2023, 3:53 PM@ColorInt, so watch out for thatromainguy
07/19/2023, 3:53 PMandroid.* very much will)ephemient
07/19/2023, 3:57 PMU suffix (as long as it fits), then a single Color(UInt) function would cover that case. oh well…ephemient
07/19/2023, 3:58 PM@ColorInt APIs :-\romainguy
07/19/2023, 4:02 PMromainguy
07/19/2023, 4:02 PMromainguy
07/19/2023, 4:03 PM0xFF000000L (note the L suffix) if you wanted a long, whereas 0xFF000000 would just be a negative integerromainguy
07/19/2023, 4:03 PMshl and shr, they make bitwise code manipulation error-prone)ephemient
07/19/2023, 4:04 PMand and or, bitwise in Kotlin is so difficult to translateromainguy
07/19/2023, 4:06 PMephemient
07/19/2023, 4:07 PMephemient
07/19/2023, 4:08 PMromainguy
07/19/2023, 4:09 PM