namespace AlibreAddOn
{
static public class HoopsColor
{
static public int FromRGB(int r, int g, int b)
{
return FromARGB(255, r, g, b);
}
static public int FromARGB(int a, int r, int g, int b)
{
return (int)((a << 24) | (r << 16) | (g << 8) | b);
}
static public int FromColor(Color clr)
{
return (int)((clr.A << 24) | (clr.R << 16) | (clr.G << 8) | clr.B);
}
}
static public class AlibreColor
{
static public int FromRGB(int r, int g, int b)
{
return FromARGB(255, r, g, b);
}
static public int FromARGB(int a, int r, int g, int b)
{
return (int)((a << 24) | (b << 16) | (g << 8) | r);
}
static public int FromColor(Color clr)
{
return (int)((clr.A << 24) | (clr.B << 16) | (clr.G << 8) | clr.R);
}
}
}