makeup|SDK
makeup|SDK is a library based on visage|SDK face tracking used to configure and render virtual makeup.
Loading...
Searching...
No Matches
Instance Methods | Class Methods | List of all members
Color Class Reference

#import <FeatureTemplate.h>

Inherits NSObject.

Instance Methods

(id) - init
 
(id) - initWithRed:andGreen:andBlue:andAlpha:
 
(NSMutableDictionary *) - ToJSON
 

Class Methods

(Color *) + FromJSON:
 

Detailed Description

Class used as a container storing RGBA for color values. Color is stored as floating point value in 0.0 to 1.0 range.

Method Documentation

◆ FromJSON:

+ (Color *) FromJSON: (NSDictionary *)  jsonDictionary

Returns Color object out of JSON dictionary.

Parameters
jsonDictionaryJSON dictionary
Returns
deserialized Color object

◆ init

- (id) init

Initializes new Color object.

◆ initWithRed:andGreen:andBlue:andAlpha:

- (id) initWithRed: (float)  red
andGreen: (float)  green
andBlue: (float)  blue
andAlpha: (float)  alpha 

Initializes new Color object with passed color values in float.

Parameters
redfloat value for red channel
greenfloat value for green channel
bluefloat value for blue channel
alphafloat value for alpha channels

◆ ToJSON

- (NSMutableDictionary *) ToJSON

Returns JSON representation out of this Color object.

Returns
JSON representation of this Color returned as NSMutableDictionary