diff --git a/drawBot/context/baseContext.py b/drawBot/context/baseContext.py index 63d9d52f..ca59ecab 100644 --- a/drawBot/context/baseContext.py +++ b/drawBot/context/baseContext.py @@ -2364,6 +2364,7 @@ class BaseContext: sRGB=AppKit.NSColorSpace.sRGBColorSpace(), genericGray=AppKit.NSColorSpace.genericGrayColorSpace(), genericGamma22Gray=AppKit.NSColorSpace.genericGamma22GrayColorSpace(), + displayP3=AppKit.NSColorSpace.displayP3ColorSpace(), ) _blendModeMap = dict( diff --git a/drawBot/drawBotDrawingTools.py b/drawBot/drawBotDrawingTools.py index 14d008a9..93fd8bb9 100644 --- a/drawBot/drawBotDrawingTools.py +++ b/drawBot/drawBotDrawingTools.py @@ -792,7 +792,7 @@ def polygon(self, *points: Point, **kwargs: bool): def colorSpace(self, colorSpace): """ Set the color space. - Options are `genericRGB`, `adobeRGB1998`, `sRGB`, `genericGray`, `genericGamma22Gray`. + Options are `genericRGB`, `adobeRGB1998`, `sRGB`, `genericGray`, `genericGamma22Gray`, `displayP3`. The default is `genericRGB`. `None` will reset it back to the default.