colorToIntRGBA function
Implementation
int colorToIntRGBA(ui.Color color) {
// Extract ARGB components
int a = (color.value >> 24) & 0xFF;
int r = (color.value >> 16) & 0xFF;
int g = (color.value >> 8) & 0xFF;
int b = color.value & 0xFF;
// Convert to RGBA and combine into a single integer
return (r << 24) | (g << 16) | (b << 8) | a;
}