Package pycocoa :: Module colors
[frames] | no frames]

Module colors

Types Color, ColorError, CMYColor, GrayScaleColor, HSBColor, RGBColor, TintColor and UIColor wrapping Cocoa's NSColor and enum-like constants CMYColors, GrayScaleColors, HSBColors, RGBColors, TintColor, TintColors, UIColors and all Colors accessible by color space acronym like CMY, GS, RGB, etc.


Version: 20.11.14

Classes
  ColorError
Color issue.
  Color
Base Color class wrapping NSColor objects, intended specifically to avoid fatal exceptions when accessing non-applicable NSColor attributes.
  CMYColor
Color in the Cyan-Magenta-Yellow space.
  GrayScaleColor
Color in the Gray-Scale space.
  HSBColor
Color in thecHue-Saturation-Brightness space.
  RGBColor
Color in the Red-Green-Blue space.
  TintColor
Dynamic color, adaptable to vibrancy and accessibility settings.
  UIColor
Dynamic color for User-Interface elements, adaptable to vibrancy and accessibility settings.
Variables
  __all__ = _ALL_LAZY.colors
  CMYColors = CMYColors.Cyan=CMYColor(_NSTaggedPointerColo...
Some standard Cyan-Magenta-Yellow colors, all CMYColor instances (enum).
  GrayScaleColors = GrayScaleColors.Black=GrayScaleColor(_NSTagg...
Some standard Gray-Scale colors, all GrayScaleColor instances (enum).
  HSBColors = HSBColors.NoneYet=None
No standard Hue-Saturation-Brightness colors, HSBColor instances (enum).
  RGBColors = RGBColors.Blue=RGBColor(_NSTaggedPointerColo...
Some standard Red-Green-Blue colors, all RGBColor instances (enum).
  TintColors = TintColors.Blue=TintColor(NSDynamicSystemColo...
Some dynamic tints, adaptable to vibrancy and accessibility settings, all TintColor instances (enum).
  UIColors = UIColors.Control=UIColor(NSDynamicSystemColo...
Some dynamic UI element colors, adaptable to vibrancy and accessibility settings, all UIColor instances (enum).
  Colors = Colors.CMY=CMYColo...
Colors by color space acronym, like Colors.RGB.Red, Colors.Tint.Red (enum).
Variables Details

CMYColors

Some standard Cyan-Magenta-Yellow colors, all CMYColor instances (enum).
Value:
CMYColors.Cyan=CMYColor(_NSTaggedPointerColor),
         .Magenta=CMYColor(_NSTaggedPointerColor),
         .Yellow=CMYColor(_NSTaggedPointerColor)

GrayScaleColors

Some standard Gray-Scale colors, all GrayScaleColor instances (enum).
Value:
GrayScaleColors.Black=GrayScaleColor(_NSTaggedPointerColor),
               .Clear=GrayScaleColor(_NSTaggedPointerColor),
               .DarkGray=GrayScaleColor(_NSTaggedPointerColor),
               .Gray=GrayScaleColor(_NSTaggedPointerColor),
               .LightGray=GrayScaleColor(_NSTaggedPointerColor),
               .Tansparent=GrayScaleColor(_NSTaggedPointerColor),
               .White=GrayScaleColor(_NSTaggedPointerColor)

RGBColors

Some standard Red-Green-Blue colors, all RGBColor instances (enum).
Value:
RGBColors.Blue=RGBColor(_NSTaggedPointerColor),
         .Brown=RGBColor(_NSTaggedPointerColor),
         .Green=RGBColor(_NSTaggedPointerColor),
         .Orange=RGBColor(NSCachedRGBColor),
         .Purple=RGBColor(NSCachedRGBColor),
         .Red=RGBColor(_NSTaggedPointerColor)

TintColors

Some dynamic tints, adaptable to vibrancy and accessibility settings, all TintColor instances (enum).
Value:
TintColors.Blue=TintColor(NSDynamicSystemColor),
          .Brown=TintColor(NSDynamicSystemColor),
          .Gray=TintColor(NSDynamicSystemColor),
          .Green=TintColor(NSDynamicSystemColor),
          .Indigo=TintColor(NSDynamicSystemColor),
          .Orange=TintColor(NSDynamicSystemColor),
          .Pink=TintColor(NSDynamicSystemColor),
          .Purple=TintColor(NSDynamicSystemColor),
...

UIColors

Some dynamic UI element colors, adaptable to vibrancy and accessibility settings, all UIColor instances (enum).
Value:
UIColors.Control=UIColor(NSDynamicSystemColor),
        .ControlBackground=UIColor(NSDynamicSystemColor),
        .Grid=UIColor(NSDynamicSystemColor),
        .HeaderText=UIColor(NSDynamicSystemColor),
        .Highlight=UIColor(NSDynamicSystemColor),
        .Label=UIColor(NSDynamicSystemColor),
        .Link=UIColor(NSDynamicSystemColor),
        .SelectedText=UIColor(NSDynamicSystemColor),
...

Colors

Colors by color space acronym, like Colors.RGB.Red, Colors.Tint.Red (enum).
Value:
Colors.CMY=CMYColors,
      .GS=GrayScaleColors,
      .HSB=HSBColors,
      .RGB=RGBColors,
      .Tint=TintColors,
      .UI=UIColors