This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
ideas:color-object [2014/07/07 17:48] – Add defaults to the dictionaries. Add dictionary overloads to the constructor and "fromFoo" functions. tabatkins | ideas:color-object [2014/07/07 18:32] – fix return values tabatkins | ||
---|---|---|---|
Line 7: | Line 7: | ||
attribute double a; | attribute double a; | ||
| | ||
- | | + | |
static RGBAColor fromHSLA(double h, double s, double l, optional double a=1); | static RGBAColor fromHSLA(double h, double s, double l, optional double a=1); | ||
static RGBAColor fromHSLA(optional HSLAColorInit color); | static RGBAColor fromHSLA(optional HSLAColorInit color); | ||
| | ||
- | | + | |
static RGBAColor fromHex(octet r, octet g, octet b, optional octet a=255); | static RGBAColor fromHex(octet r, octet g, octet b, optional octet a=255); | ||
static RGBAColor fromHex(optional HexColorInit color); | static RGBAColor fromHex(optional HexColorInit color); | ||
Line 29: | Line 29: | ||
double a = 1; | double a = 1; | ||
}; | }; | ||
+ | | ||
dictionary HSLAColorInit { | dictionary HSLAColorInit { | ||
double h = 0; | double h = 0; |