dwg_color_method_name (unsigned m)
{
  switch (m) {
  case 0xc0: return "ByLayer";
  case 0xc1: return "ByBlock";
  case 0xc2: return "entity (default)";
  case 0xc3: return "Truecolor";
  case 0xc5: return "Foreground";
  case 0xc8: return "none";
  default: return "";
  }
}
dwg_color_method_name (unsigned m)
{
  switch (m) {
  case 0xc0: return "ByLayer";
  case 0xc1: return "ByBlock";
  case 0xc2: return "entity (default)";
  case 0xc3: return "Truecolor";
  case 0xc5: return "Foreground";
  case 0xc8: return "none";
  default: return "";
  }
}