ftp.nice.ch/pub/next/graphics/apps/GraphicsWrap.N.bs.tar.gz#/462/CmdBgcolor.m

This is CmdBgcolor.m in view mode; [Download] [Up]

/* 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

These are the contents of the former NiCE NeXT User Group NeXTSTEP/OpenStep software archive, currently hosted by Netfuture.ch.