Oolite 1.91.0.7645-241119-222d325
|
#include <OOColor.h>
Instance Methods | |
(OOColor *) | - blendedColorWithFraction:ofColor: |
(float) | - redComponent |
(float) | - greenComponent |
(float) | - blueComponent |
(void) | - getRed:green:blue:alpha: |
(OORGBAComponents) | - rgbaComponents |
(BOOL) | - isBlack |
(BOOL) | - isWhite |
(float) | - hueComponent |
(float) | - saturationComponent |
(float) | - brightnessComponent |
(void) | - getHue:saturation:brightness:alpha: |
(OOHSBAComponents) | - hsbaComponents |
(float) | - alphaComponent |
(OOColor *) | - premultipliedColor |
(OOColor *) | - colorWithBrightnessFactor: |
(NSArray *) | - normalizedArray |
(NSString *) | - rgbaDescription |
(NSString *) | - hsbaDescription |
(void) | - setRed:green:blue:alpha: [implementation] |
(void) | - setHue:saturation:brightness:alpha: [implementation] |
(id) | - copyWithZone: [implementation] |
(NSString *) | - descriptionComponents [implementation] |
(NSColor *) | - asNSColor |
Class Methods | |
(OOColor *) | + colorWithHue:saturation:brightness:alpha: |
(OOColor *) | + colorWithRed:green:blue:alpha: |
(OOColor *) | + colorWithWhite:alpha: |
(OOColor *) | + colorWithRGBAComponents: |
(OOColor *) | + colorWithHSBAComponents: |
(OOColor *) | + colorWithDescription: |
(OOColor *) | + brightColorWithDescription: |
(OOColor *) | + colorWithDescription:saturationFactor: |
(OOColor *) | + colorFromString: |
(OOColor *) | + blackColor |
(OOColor *) | + darkGrayColor |
(OOColor *) | + lightGrayColor |
(OOColor *) | + whiteColor |
(OOColor *) | + grayColor |
(OOColor *) | + redColor |
(OOColor *) | + greenColor |
(OOColor *) | + blueColor |
(OOColor *) | + cyanColor |
(OOColor *) | + yellowColor |
(OOColor *) | + magentaColor |
(OOColor *) | + orangeColor |
(OOColor *) | + purpleColor |
(OOColor *) | + brownColor |
(OOColor *) | + clearColor |
Private Attributes | |
float | rgba [4] |
- (float) alphaComponent |
Definition at line 544 of file OOColor.m.
Referenced by AddMacroColorIfAppropriate(), fillSquareImageDataWithCloudTexture(), and HeadUpDisplay::hudDrawReticleOnTarget.
- (NSColor *) asNSColor |
Provided by category OOColor(NSColorConversion).
Definition at line 1 of file OODebugUtilities.m.
+ (OOColor *) blackColor |
Definition at line 544 of file OOColor.m.
Definition at line 544 of file OOColor.m.
Referenced by SaturatedColorInRange().
+ (OOColor *) blueColor |
Definition at line 544 of file OOColor.m.
- (float) blueComponent |
Definition at line 544 of file OOColor.m.
Referenced by AddMacroColorIfAppropriate(), fillSquareImageDataWithCloudTexture(), FloatRGBFromDictColor(), and HeadUpDisplay::hudDrawReticleOnTarget.
+ (OOColor *) brightColorWithDescription: | (id) | description |
Definition at line 544 of file OOColor.m.
- (float) brightnessComponent |
+ (OOColor *) brownColor |
+ (OOColor *) clearColor |
+ (OOColor *) colorFromString: | (NSString*) | colorFloatString |
Definition at line 544 of file OOColor.m.
- (OOColor *) colorWithBrightnessFactor: | (float) | factor |
+ (OOColor *) colorWithDescription: | (id) | description |
Definition at line 544 of file OOColor.m.
Referenced by CanonicalizeMaterialSpecifier(), EquipmentInfoSetProperty(), FlasherSetProperty(), FloatRGBFromDictColor(), OOPlanetEntity(OOJavaScriptExtensions)::getJSClass:andPrototype:, GetRGBAArrayFromInfo(), GlobalSetGuiColorSettingForKey(), PlayerShipSetProperty(), SetGLColourFromInfo(), ShipSetProperty(), and VisualEffectSetProperty().
+ (OOColor *) colorWithDescription: | (id) | description | |
saturationFactor: | (float) | factor |
Definition at line 544 of file OOColor.m.
+ (OOColor *) colorWithHSBAComponents: | (OOHSBAComponents) | components |
Definition at line 544 of file OOColor.m.
+ (OOColor *) colorWithHue: | (float) | hue | |
saturation: | (float) | saturation | |
brightness: | (float) | brightness | |
alpha: | (float) | alpha |
Definition at line 544 of file OOColor.m.
Referenced by SaturatedColorInRange().
+ (OOColor *) colorWithRed: | (float) | red | |
green: | (float) | green | |
blue: | (float) | blue | |
alpha: | (float) | alpha |
Definition at line 544 of file OOColor.m.
Referenced by HeadUpDisplay::OODrawPlanetInfo.
+ (OOColor *) colorWithRGBAComponents: | (OORGBAComponents) | components |
Definition at line 544 of file OOColor.m.
Referenced by ModulateColor().
+ (OOColor *) colorWithWhite: | (float) | white | |
alpha: | (float) | alpha |
|
implementation |
+ (OOColor *) cyanColor |
+ (OOColor *) darkGrayColor |
|
implementation |
- (void) getHue: | (float *) | hue | |
saturation: | (float *) | saturation | |
brightness: | (float *) | brightness | |
alpha: | (float *) | alpha |
Definition at line 544 of file OOColor.m.
Referenced by SaturatedColorInRange().
- (void) getRed: | (float *) | red | |
green: | (float *) | green | |
blue: | (float *) | blue | |
alpha: | (float *) | alpha |
Definition at line 544 of file OOColor.m.
Referenced by ApplyColor(), GetRGBAArrayFromInfo(), and SetGLColourFromInfo().
+ (OOColor *) grayColor |
+ (OOColor *) greenColor |
Definition at line 544 of file OOColor.m.
Referenced by HeadUpDisplay::hudDrawReticleOnTarget.
- (float) greenComponent |
Definition at line 544 of file OOColor.m.
Referenced by AddMacroColorIfAppropriate(), fillSquareImageDataWithCloudTexture(), FloatRGBFromDictColor(), and HeadUpDisplay::hudDrawReticleOnTarget.
- (OOHSBAComponents) hsbaComponents |
Definition at line 544 of file OOColor.m.
- (NSString *) hsbaDescription |
Definition at line 544 of file OOColor.m.
- (float) hueComponent |
Definition at line 544 of file OOColor.m.
- (BOOL) isBlack |
- (BOOL) isWhite |
+ (OOColor *) lightGrayColor |
Definition at line 544 of file OOColor.m.
Referenced by ApplyColor().
+ (OOColor *) magentaColor |
- (NSArray *) normalizedArray |
Definition at line 544 of file OOColor.m.
Referenced by AddColorIfAppropriate(), CanonicalizeMaterialSpecifier(), EquipmentInfoGetProperty(), FlasherGetProperty(), PlayerShipGetProperty(), ShipGetProperty(), SynthSpecular(), and VisualEffectGetProperty().
+ (OOColor *) orangeColor |
- (OOColor *) premultipliedColor |
+ (OOColor *) purpleColor |
+ (OOColor *) redColor |
Definition at line 544 of file OOColor.m.
Referenced by HeadUpDisplay::hudDrawReticleOnTarget.
- (float) redComponent |
Definition at line 544 of file OOColor.m.
Referenced by AddMacroColorIfAppropriate(), fillSquareImageDataWithCloudTexture(), FloatRGBFromDictColor(), and HeadUpDisplay::hudDrawReticleOnTarget.
- (OORGBAComponents) rgbaComponents |
Definition at line 544 of file OOColor.m.
Referenced by ModulateColor().
- (NSString *) rgbaDescription |
Definition at line 544 of file OOColor.m.
- (float) saturationComponent |
Definition at line 544 of file OOColor.m.
|
implementation |
Definition at line 544 of file OOColor.m.
|
implementation |
+ (OOColor *) whiteColor |
+ (OOColor *) yellowColor |
Definition at line 544 of file OOColor.m.
Referenced by GuiDisplayGen::addLongText:startingAtRow:align:.