Skip to content

fontlab_glyport.drawing.cocoa_drawing.NSColor

NSColor

An sRGB colour; set/setFill/setStroke change the current context.

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
__eq__ function (self, other) -> bool
__hash__ function (self) -> int
__init__ function (self, red: float, green: float, blue: float, alpha: float=1.0)
__repr__ function (self) -> str
alphaComponent function (self) -> float
blendedColorWithFraction_ofColor_ function (self, fraction, color)
blueComponent function (self) -> float
colorWithAlphaComponent_ function (self, alpha)
colorWithCalibratedHue_saturation_brightness_alpha_ attribute
colorWithCalibratedRed_green_blue_alpha_ attribute
colorWithCalibratedWhite_alpha_ attribute
colorWithDeviceHue_saturation_brightness_alpha_ attribute
colorWithDeviceRed_green_blue_alpha_ attribute
colorWithDeviceWhite_alpha_ attribute
colorWithHue_saturation_brightness_alpha_ function (cls, h, s, b, a)
colorWithRed_green_blue_alpha_ function (cls, r, g, b, a)
colorWithSRGBRed_green_blue_alpha_ attribute
colorWithWhite_alpha_ function (cls, white, alpha)
greenComponent function (self) -> float
qcolor function (self, qt: Any) -> Any
redComponent function (self) -> float
set function (self) -> None
setFill function (self) -> None
setStroke function (self) -> None