fontgate.fgColor · declarations 001
A
A() -> int
int A() - get alpha value as int (0..255)
B
B() -> int
int B() - get blue value as int (0..255)
G
G() -> int
int G() - get green value as int (0..255)
R
R(*args: Any, **kwargs: Any) -> Any
int B() - get blue value as int (0..255)
a
instance-attribute
a: Any
(float 0..1.0) - alpha channel
b
instance-attribute
b: Any
(float 0..1.0) - blue channel
fromInt
fromInt(r: Any, g: Any, a: Any = ...) -> fgColor
fgColor fromInt(r, g, b[, a=255]) - get color by int rgb(a) values (0..255)
fromLab
fromLab(l: Any, a: Any, b: Any) -> fgColor
fgColor fromLab(l, a, b) - get color by float lab values
g
instance-attribute
g: Any
(float 0..1.0) - green channel
getCMYK
getCMYK(*args: Any, **kwargs: Any) -> Any
(c, m, y, k, a) getCMYK([varK = 0.3]) - get color as CMYK+A components
gray
gray() -> float
float gray() - get color as grayscale level
hue
hue() -> float
float hue() - get hue value
lab
lab(*args: Any, **kwargs: Any) -> Any
(l, a, b) lab() - get color as lab float values
lightness
lightness() -> float
float lightness() - get lightness value
r
instance-attribute
r: Any
(float 0..1.0) - red channel
saturation
saturation() -> float
float saturation() - get saturation value
set
set(*args: Any, **kwargs: Any) -> Any
set((r, g, b[, a])) - set color by tuple with rgb or rgba float values
setCMYK
setCMYK(*args: Any, **kwargs: Any) -> Any
setCMYK(c, m, y, k[, _a = 1.0]) = set color by CMYK[A] float values
setGray
setGray(*args: Any, **kwargs: Any) -> Any
segGray(float v) - set rgb components to v
setHue
setHue(s: Any = ...) -> Any
setHue(h[, s=1.0[, l = 0.5]]) - set by hsl float values
xyz
xyz(*args: Any, **kwargs: Any) -> Any
(x, y, z) xyz() - get color as xyz float values