private static Color32 RGBAToColor32(uint color) { byte red = DocColor.rgba_getr(color); byte green = DocColor.rgba_getg(color); byte blue = DocColor.rgba_getb(color); byte alpha = DocColor.rgba_geta(color); return(new Color32(red, green, blue, alpha)); }
private static uint Color32ToRGBA(Color32 color) { return(DocColor.rgba(color.r, color.g, color.b, color.a)); }