def lms(self, color): # Validate color, space = self.validate(color=color, space='lms') if space != 'lms': setattr(self, space) return # Apply via rgba255 self.rgb = ct.lms2rgb(color, self.conematrix) # Clear outdated values from cache self._cache = {'lms': color}
def setLMS(self, newLMS, operation=''): """DEPRECATED since v1.60.05: Please use the `color` attribute """ self._set('lms', value=newLMS, op=operation) self.setRGB(lms2rgb(self.lms, self.win.lms_rgb))