
/* Generated by Interface Builder */

#import "CmdBgcolor.h"
#import "miscutil.h"

@implementation CmdBgcolor
- initCmd:(int)r :(int)g :(int)b
{
  [super init];
  color=NXConvertRGBToColor(bytetofloat(r), bytetofloat(g), bytetofloat(b));
  number1=r;
  number2=g;
  number3=b;
  command="bgcolor";
  return self;
}

- initCmdColor:(NXColor)aColor
{
  [super init];
  color=aColor;
  number1=floattobyte(NXRedComponent(aColor));
  number2=floattobyte(NXGreenComponent(aColor));
  number3=floattobyte(NXBlueComponent(aColor));
  command="bgcolor";
  return self;
}

- doCmd
{
  [theBitmap setBackColor:color];
  return self;
}
@end
