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