R = R (.) int B() - get blue value as int (0.255) Lightness = lightness (.) float lightness() - get lightness value Lab = lab (.) (l, a, b) lab() - get color as lab float values Hue = hue (.) float hue() - get hue value Gray = gray (.) float gray() - get color as grayscale level GetCMYK = getCMYK (.) (c, m, y, k, a) getCMYK() - get color as CMYK+A components G = G (.) int G() - get green value as int (0.255) ) -> a new object with type S, a subtype of TĪ = A (.) int A() - get alpha value as int (0.255)Ī (float 0.1.0) - alpha channelĪsDict = asDict (.) represent object as dictionaryĪsTuple = asTuple (.) represent object as tupleī = B (.) int B() - get blue value as int (0.255)ī (float 0.1.0) - blue channelīlack = black (.) fgColor black() - get black colorįromInt = fromInt (.) fgColor fromInt(r, g, b) - get color by int rgb(a) values (0.255)įromLab = fromLab (.) fgColor fromLab(l, a, b) - get color by float lab values _str_() str(x) asDict (.) represent object as dictionary asTuple (.) represent object as tuple getCMYK (.) (c, m, y, k, a) getCMYK() - get color as CMYK+A components gray (.) float gray() - get color as grayscale level hue (.) float hue() - get hue value lab (.) (l, a, b) lab() - get color as lab float values lightness (.) float lightness() - get lightness value saturation (.) float saturation() - get saturation value set (.) set((r, g, b)) - set color by tuple with rgb or rgba float values setCMYK (.) setCMYK(c, m, y, k) = set color by CMYK float values setGray (.) segGray(float v) - set rgb components to v setHue (.) setHue(h]) - set by hsl float values xyz (.) (x, y, z) xyz() - get color as xyz float values Static methods black (.) fgColor black() - get black color fromInt (.) fgColor fromInt(r, g, b) - get color by int rgb(a) values (0.255) fromLab (.) fgColor fromLab(l, a, b) - get color by float lab values transparent (.) fgColor transparent() - get transparent color Descriptors a (float 0.1.0) - alpha channel b (float 0.1.0) - blue channel g (float 0.1.0) - green channel r (float 0.1.0) - red channel Attributes _new_ = T. Use of negative indices is not supported. _setattr_('name', value) x.name = value _setitem_ (.) x. _init_(.) initializes x see help(type(x)) for signature _le_ (.) x. _getattribute_('name') x.name _getitem_ (.) x. _delattr_('name') del x.name _delitem_ (.) x. FgColor fontgate.fgColor = class fgColor( object) Color representationįgColor(float hueValue) - by hue value fgColor(r, g, b) - by r, g, b, float values from 0 to 1.0įgColor(r, g, b, a) - by r, g, b, a float values from 0 to 1.0 Methods A (.) int A() - get alpha value as int (0.255) B (.) int B() - get blue value as int (0.255) G (.) int G() - get green value as int (0.255) R (.) int B() - get blue value as int (0.255) _add_ (.) x.
0 Comments
Leave a Reply. |