pub unsafe fn color_to_u32(color: Color) -> Result<u32>
This function is unsafe because it may dereference raw pointers.