Ejemplo n.º 1
0
        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));
        }
Ejemplo n.º 2
0
 private static uint Color32ToRGBA(Color32 color)
 {
     return(DocColor.rgba(color.r, color.g, color.b, color.a));
 }