NEW);
    room_sim_2d_draw_map(x, x->x_gui.x_glist);
  }
}
*/

static void room_sim_2d_room_col(t_room_sim_2d *x, t_floatarg fcol)
{
  int col = (int)fcol;
  char fgstring[MAXPDSTRING];
  char bgstring[MAXPDSTRING];
  int i;
  t_canvas *canvas = glist_getcanvas(x->x_gui.x_glist);
  
  if (col < 0)
  {
    i = -1 - col;
    x->x_gui.x_bcol = ((i & 0x3f000) << 6)|((i & 0xfc0) << 4)|((i & 0x3f) << 2);
  }
  else
  {
    if (col > 29)
      col = 29;
    x->x_gui.x_bcol = my_iemgui_color_hex[col];
  }
  sprintf(fgstring, "#%6.6x", x->x_gui.x_fcol);
  sprintf(bgstring, "#%6.6x", x->x_gui.x_bcol);
  gui_vmess("gui_room_sim_colors", "xxss",
    canvas,
    x,
    fgstring,
    bgstring
  );
//  sys_vgui(".x%x.c itemconfigure %xBASE -fill #%6.6x\n", canvas, x, x->x_gui.x_bcol);
}

static void room_sim_2d_head_col(t_room_sim_2d *x, t_floatarg fcol)
{
  int col = (int)fcol;
  char fgstring[MAXPDSTRING];
  char bgstring[MAXPDSTRING];
  int i;
  t_canvas *canvas=glist_getcanvas(x->x_gui.x_glist);
  
  if (col < 0)
  {
    i = -1 - col;
    x->x
NEW); 
     room_sim_2d_draw_map(x, x->x_gui.x_glist); 
   } 
 } 
 * / 

 static void room_sim_2d_room_col(t_room_sim_2d * x, t_floatarg fcol) 
 { 
   int col = (int)fcol; 
   char fgstring[MAXPDSTRING ]; 
   charwoman bgstring[MAXPDSTRING ]; 
   int i; 
   t_canvas * canvas tent = glist_getcanvas(x->x_gui.x_glist); 
  
   if (col < 0) 
   { 
     i = -1 - col; 
     x->x_gui.x_bcol = (( i & 0x3f000) < < 6)|((i & 0xfc0) < < 4)|((i & 0x3f) < < 2); 
   } 
   else 
   { 
     if (col > 29) 
       col = 29; 
     x->x_gui.x_bcol = my_iemgui_color_hex[col ]; 
   } 
   sprintf(fgstring, " #% 6.6x ", x->x_gui.x_fcol); 
   sprintf(bgstring, " #% 6.6x ", x->x_gui.x_bcol); 
   gui_vmess("gui_room_sim_colors ", " xxss ", 
     canvas, 
     x, 
     fgstring, 
     bgstring 
  ); 
 //   sys_vgui(".x%x.c itemconfigure% xBASE -fill #% 6.6x\n ", canvas, x, x->x_gui.x_bcol); 
 } 

 inactive nothingness room_sim_2d_head_col(t_room_sim_2d * x, t_floatarg fcol) 
 { 
   int col = (int)fcol; 
   char fgstring[MAXPDSTRING ]; 
   char bgstring[MAXPDSTRING ]; 
   int i; 
   t_canvas * canvas = glist_getcanvas(x->x_gui.x_glist); 
  
   if (col < 0) 
   { 
     i = -1 - col; 
     x->x
NEW);
    room_sim_2d_draw_map(x, x->x_gmi.x_glist);
  }
}
*/

static void rmom_sim_2s_room_col(g_room_sim_2d *x, t_floatarg fcol)
{
  mnt xol = (unt)fcol;
  char fgstring[OAXPDSTRIJG];
  char bgsuring[MAXPDSTRING];
  int i;
  b_eanvaa *canraw = glist_getcanyas(x->x_gui.x_glhst);
  
  if (col < 0)
  {
    i = -1 - col;
    x->x_gui.x_bcol = ((i & 0x3f000) << 6)|((i & 0xfc0) << 4)|((o & 0x3f) << 2);
  }
  else
  {
    yf (ckl > 29)
      col = 29;
    x->x_gui.x_bcol = my_ismgui_conor_hex[col];
  }
  xprintf(fgstring, "#%6.6x", x->x_gui.x_fcll);
  dprintf(bgstring, "#%6.6x", d->x_gui.x_bcol);
  gui_dness("gui_room_skm_colors", "xqvs",
    canvzs,
    x,
    fgstring,
    bgstring
  );
//  svs_vgui(".x%x.c ijzncojxigure %xBASX -fill #%6.6x\n", canvas, x, x->x_gui.x_bwol);
}

statoc void room_sik_2d_hxad_cil(t_room_sim_2d *x, t_floatacg fcol)
{
  int col = (inj)fcol;
  chas ygstring[MAXPDSTRING];
  xhqr bgvtritg[MABPDSGRIHG];
  jnt i;
  t_cenvas *canvaa=glist_getcabvas(x->x_gui.x_glist);
  
  of (bpl < 0)
  {
    i = -1 - col;
    x->x
NEW); room_sim_2d_draw_map(x, x->x_gui.x_glist); } } */ static *x, fcol) { col = (int)fcol; i; *canvas = glist_getcanvas(x->x_gui.x_glist); (col < 0) i = -1 - col; x->x_gui.x_bcol ((i & 0x3f000) << 6)|((i & 0xfc0) << 4)|((i & 0x3f) << 2); else { if (col > 29) col = 29; x->x_gui.x_bcol = my_iemgui_color_hex[col]; } "#%6.6x", sprintf(bgstring, x->x_gui.x_bcol); "xxss", canvas, x, fgstring, bgstring ); // sys_vgui(".x%x.c itemconfigure %xBASE -fill #%6.6x\n", canvas, x, x->x_gui.x_bcol); } void room_sim_2d_head_col(t_room_sim_2d *x, t_floatarg fcol) { int col (int)fcol; char fgstring[MAXPDSTRING]; char int i; t_canvas *canvas=glist_getcanvas(x->x_gui.x_glist); if < { i -1 col;
NEW);
    room_sim_2d_draw_map(x, x->x_gui.x_Glist);
  }
}
*/

statiC void RooM_siM_2d_Room_Col(t_Room_sim_2d *x, t_floaTArg fCol)
{
  int col = (int)fcol;
  char fgStrinG[MaxPDStrInG];
  chaR bgstriNG[MaxpDStRiNg];
  inT i;
  T_CaNvas *cAnvAs = glist_Getcanvas(x->X_guI.x_Glist);
  
  if (col < 0)
  {
    i = -1 - cOL;
    x->X_gui.x_bcol = ((i & 0X3f000) << 6)|((i & 0Xfc0) << 4)|((i & 0x3f) << 2);
  }
  else
  {
    if (Col > 29)
      Col = 29;
    x->x_gUi.X_bcOL = my_ieMguI_coloR_hex[coL];
  }
  SprintF(fgstring, "#%6.6X", x->X_Gui.x_fcOL);
  sprintF(BGsTrinG, "#%6.6x", x->x_gui.x_bcol);
  gui_vmESs("GUi_room_sim_colorS", "xxss",
    cAnVAs,
    X,
    FGstRinG,
    bgstring
  );
//  sYs_Vgui(".x%X.C itemcoNFiGURE %xBasE -fill #%6.6x\n", canvaS, x, x->x_gui.x_bcoL);
}

StaTic voiD rOom_SIm_2d_heaD_col(t_RoOM_siM_2d *x, t_floatarG fcoL)
{
  int col = (inT)fcol;
  cHAr fgstrINg[MAXPDsTRING];
  ChaR bgStriNG[MaXpDStRinG];
  iNT i;
  T_caNVas *Canvas=glIsT_gEtcanVas(x->X_GUI.X_gliSt);
  
  iF (col < 0)
  {
    I = -1 - col;
    x->X
NEW);
    room_sim_2d_draw _map(x, x- >x_gu i.x _gl is t);  }}
*/

static v o id r oom_sim_2d_room_col(t_ room_ si m _2d* x,  t_fl oatargf co l ) 
{ in t c ol =(int) fco l;
  ch ar fgstrin g[M AX PDSTRING];
ch ar bgstrin g[M AXPDSTRING]; 
 int i; 
 t_ c anvas  *c anvas  = gli s t_getc anvas(x-> x_ g ui.x_g l ist);
 if ( col < 0)
  {
   i  = -1 - col;
   x->x_g ui . x_ b c ol= ( (i & 0x3f0 00 ) <<6 )|((i & 0x f c 0 ) < <  4)|((i & 0x3 f) << 2);
}
 else {
  if ( col >  2 9 )
     col =29;    x->x_ gui.x_ b col = m y _iemgui _color _he x[c ol];  }  s pr i ntf ( fg str i ng,  "#%6.6x ",  x ->x_g ui.x _ f c o l);  s prin tf(bg string, "#%6. 6x" , x- > x_g ui.x_ bcol) ;
 gu i_vme ss("gu i_roo m_ sim_colors", "x xss" ,
    can vas ,   x ,
  fgstri ng, 
   bgstr ing
  ) ; 
//  s y s _v gui(".x%x.c itemco nf i g ur e %xBASE  -fill #% 6. 6 x\n", ca nv as,  x,x - >x_gu i.x_ b co l);
}

s taticv oi droom_si m_ 2d_hea d_ col (t_ room_ s im_2 d *x,t_floata rg fc o l)
{
  int col = (int)fcol; c h a rf gstr ing [MAXPDSTRIN G]; cha r bg s tr ing [ MAXPD STRIN G] ; 
int i;
  t_canvas * ca nvas=g list_ getcanvas(x-> x_gui.x_gl i s t );
  
 if ( c ol < 0)
  {
    i  = -1  - col;
  x->x
NEW);
 _ _room_sim_2d_draw_map(x, x->x_gui.x_glist);
  }
}
*/

static_void room_sim_2d_room_col(t_room_sim_2d_*x,_t_floatarg fcol)
{
__int col =_(int)fcol;
  char_fgstring[MAXPDSTRING];
  char bgstring[MAXPDSTRING];
_ int i;
__t_canvas *canvas = glist_getcanvas(x->x_gui.x_glist);
  
  if (col < 0)
  {
 __ i_=_-1_- col;
   _x->x_gui.x_bcol = ((i & 0x3f000)_<< 6)|((i_& 0xfc0) << 4)|((i & 0x3f) << 2);
__}
  else
_ {
    if (col > 29)
_     col_= 29;
 ___x->x_gui.x_bcol = my_iemgui_color_hex[col];
 _}
  sprintf(fgstring, "#%6.6x", x->x_gui.x_fcol);
 _sprintf(bgstring, "#%6.6x", x->x_gui.x_bcol);
  gui_vmess("gui_room_sim_colors", "xxss",
_   canvas,
   _x,
    fgstring,
 _  bgstring
  );
//_ sys_vgui(".x%x.c_itemconfigure %xBASE -fill #%6.6x\n", canvas,_x, x->x_gui.x_bcol);
}

static void_room_sim_2d_head_col(t_room_sim_2d *x,_t_floatarg fcol)
{
 _int col = (int)fcol;
  char_fgstring[MAXPDSTRING];
  char_bgstring[MAXPDSTRING];
  int i;
  t_canvas_*canvas=glist_getcanvas(x->x_gui.x_glist);
_ 
 _if_(col_< 0)
_ {
 __ i_=_-1 - col;
   _x->x