Skip to content

fontgate.fgColor

fgColor

Color representation

Constructors: fgColor() - default fgColor(fgColor) - copy fgColor(float hueValue) - by hue value fgColor(r, g, b) - by r, g, b, float values from 0 to 1.0 fgColor(r, g, b, a) - by r, g, b, a float values from 0 to 1.0

Native bases: object

Captured native MRO: fgColor, object

Native new allocation evidence (not an init overload): (args, *kwargs) Create and return a new object. See help(type) for accurate signature.

Complete member index

Every captured member retains its own identity. Identical captured declaration text is linked once; this does not establish native inheritance or interchangeable objects.

Member Kind Signature Summary
A function (self) -> int
B function (self) -> int
G function (self) -> int
R function (self, *args: Any, **kwargs: Any) -> Any
__init__ function (self, /, *args: Any, **kwargs: Any) -> None Initialize self. (shared captured text)
a attribute Any (float 0..1.0) - alpha channel
asDict function (self, *args: Any, **kwargs: Any) -> Any Represent object as dictionary (shared captured text)
asTuple function (self, *args: Any, **kwargs: Any) -> Any Represent object as tuple (shared captured text)
b attribute Any (float 0..1.0) - blue channel
black function () -> fgColor FgColor black() - get black color
fromInt function (r: Any, g: Any, a: Any=...) -> fgColor
fromLab function (l: Any, a: Any, b: Any) -> fgColor FgColor fromLab(l, a, b) - get color by float lab values
g attribute Any (float 0..1.0) - green channel
getCMYK function (self, *args: Any, **kwargs: Any) -> Any (c, m, y, k, a) getCMYK([varK = 0.3]) - get color as CMYK+A components
gray function (self) -> float Float gray() - get color as grayscale level
hue function (self) -> float Float hue() - get hue value
lab function (self, *args: Any, **kwargs: Any) -> Any (l, a, b) lab() - get color as lab float values
lightness function (self) -> float Float lightness() - get lightness value
r attribute Any (float 0..1.0) - red channel
saturation function (self) -> float Float saturation() - get saturation value
set function (self, *args: Any, **kwargs: Any) -> Any Set((r, g, b[, a])) - set color by tuple with rgb or rgba float values
setCMYK function (self, *args: Any, **kwargs: Any) -> Any SetCMYK(c, m, y, k[, _a = 1.0]) = set color by CMYK[A] float values
setGray function (self, *args: Any, **kwargs: Any) -> Any Set rgb components to v
setHue function (self, s: Any=...) -> Any Set by hsl float values
transparent function () -> fgColor FgColor transparent() - get transparent color
xyz function (self, *args: Any, **kwargs: Any) -> Any (x, y, z) xyz() - get color as xyz float values