protected virtual int ColorToInt(ref Color3 c)
        {
            int ci = c.ToRgba();

            return((ci & 0xff0000) >> 16 | (ci & 0xff00) | (ci & 0xff) << 16);
        }
 protected virtual int ColorToInt(ref Color3 c)
 {
     int ci = c.ToRgba();
     return (ci & 0xff0000) >> 16 | (ci & 0xff00) | (ci & 0xff) << 16;
 }