Up

# NSGradient class documentation

### Authors

Generated by root

# Software documentation for the NSGradient class

## NSGradient : NSObject

> Declared in:
>   AppKit/NSGradient.h

> Conforms to:
>   NSCopying
>   NSCoding

Availability: MacOS-X 10.5.0
Description forthcoming.

Instance Variables
Method summary

- -colorSpace
- -drawFromCenter:radius:toCenter:radius:options:
- -drawFromPoint:toPoint:options:
- -drawInBezierPath:angle:
- -drawInBezierPath:relativeCenterPosition:
- -drawInRect:angle:
- -drawInRect:relativeCenterPosition:
- -getColor:location:atIndex:
- -initWithColors:
- -initWithColors:atLocations:colorSpace:
- -initWithColorsAndLocations:,...
- -initWithStartingColor:endingColor:
- -interpolatedColorAtLocation:
- -numberOfColorStops

### colorSpace

- (NSColorSpace*) colorSpace;
Availability: MacOS-X 10.5.0
Description forthcoming.

### drawFromCenter: radius: toCenter: radius: options:

- (void) drawFromCenter: (NSPoint)startCenter radius: (CGFloat)startRadius toCenter: (NSPoint)endCenter radius: (CGFloat)endRadius options: (NSGradientDrawingOptions)options;
Availability: MacOS-X 10.5.0
Description forthcoming.

### drawFromPoint: toPoint: options:

- (void) drawFromPoint: (NSPoint)startPoint toPoint: (NSPoint)endPoint options: (NSGradientDrawingOptions)options;
Availability: MacOS-X 10.5.0
Description forthcoming.

### drawInBezierPath: angle:

- (void) drawInBezierPath: (NSBezierPath*)path angle: (CGFloat)angle;
Availability: MacOS-X 10.5.0
Description forthcoming.

### drawInBezierPath: relativeCenterPosition:

- (void) drawInBezierPath: (NSBezierPath*)path relativeCenterPosition: (NSPoint)relativeCenterPoint;
Availability: MacOS-X 10.5.0
Description forthcoming.

### drawInRect: angle:

- (void) drawInRect: (NSRect)rect angle: (CGFloat)angle;
Availability: MacOS-X 10.5.0
Description forthcoming.

### drawInRect: relativeCenterPosition:

- (void) drawInRect: (NSRect)rect relativeCenterPosition: (NSPoint)relativeCenterPoint;
Availability: MacOS-X 10.5.0
Description forthcoming.

### getColor: location: atIndex:

- (void) getColor: (NSColor**)color location: (CGFloat*)location atIndex: (NSInteger)index;
Availability: MacOS-X 10.5.0
Description forthcoming.

### initWithColors:

- (id) initWithColors: (NSArray*)colorArray;
Availability: MacOS-X 10.5.0
Description forthcoming.

### initWithColors: atLocations: colorSpace:

- (id) initWithColors: (NSArray*)colorArray atLocations: (const CGFloat*)locations colorSpace: (NSColorSpace*)colorSpace;
Availability: MacOS-X 10.5.0
Description forthcoming.

### initWithColorsAndLocations: ,...

- (id) initWithColorsAndLocations: (NSColor*)color,...;
Availability: MacOS-X 10.5.0
Description forthcoming.

### initWithStartingColor: endingColor:

- (id) initWithStartingColor: (NSColor*)startColor endingColor: (NSColor*)endColor;
Availability: MacOS-X 10.5.0
Description forthcoming.

### interpolatedColorAtLocation:

- (NSColor*) interpolatedColorAtLocation: (CGFloat)location;
Availability: MacOS-X 10.5.0
Description forthcoming.

### numberOfColorStops

- (NSInteger) numberOfColorStops;
Availability: MacOS-X 10.5.0
Description forthcoming.

## Instance Variables for NSGradient Class

### _colorSpace

@protected NSColorSpace* _colorSpace;
Availability: MacOS-X 10.5.0
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.

### _colors

@protected NSArray* _colors;
Availability: MacOS-X 10.5.0
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.

### _locations

@protected CGFloat* _locations;
Availability: MacOS-X 10.5.0
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.

### _numberOfColorStops

@protected NSInteger _numberOfColorStops;
Availability: MacOS-X 10.5.0
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.

Up