This is SpermViewPart.h in view mode; [Download] [Up]
#import <appkit/color.h> #import <appkit/View.h> #import "UserPath.h" // you can change MAXCOUNT to anything higher if you want #define MAXCOUNT 200 typedef double POINT[2]; typedef double VECTOR[2]; @interface SpermView : View { UserPath *uPath; POINT x[MAXCOUNT], prevX[MAXCOUNT]; VECTOR v[MAXCOUNT]; VECTOR mouse; double sine[MAXCOUNT]; double cosine[MAXCOUNT]; double vel[MAXCOUNT]; double rad; double dir; int count; NXColor color; BOOL useColors; BOOL dontErase; int oldEventMask; NXCoord lineWidth; BOOL alreadyInitialized; int randCount1, randCount2; } - initFrame:(const NXRect *)rect; - (void)initializeLine:(int)i; - oneStep; - drawPath; - drawSelf:(const NXRect *)rects :(int)rectCount; - free; - newWindow; - effectOne; - effectTwo; - effectThree; - effectFour; - effectFive; - effectSix; - effectSeven; - doEffectNumber:(int)val; - setNumLines:(int)val; @end
These are the contents of the former NiCE NeXT User Group NeXTSTEP/OpenStep software archive, currently hosted by Netfuture.ch.