def dkl(self, color): # Validate color, space = self.validate(color=color, space='dkl') if space != 'dkl': setattr(self, space) return # Apply via rgba255 self.rgb = ct.dkl2rgb(color, self.conematrix) # Clear outdated values from cache self._cache = {'dkl': color}
def setDKL(self, newDKL, operation=''): """DEPRECATED since v1.60.05: Please use the `color` attribute """ self._set('dkl', val=newDKL, op=operation) self.setRGB(dkl2rgb(self.dkl, self.win.dkl_rgb))