Home
last modified time | relevance | path

Searched refs:rgbtuple (Results 1 – 4 of 4) sorted by relevance

/external/python/cpython2/Tools/pynche/
DColorDB.py86 def find_byrgb(self, rgbtuple): argument
89 return self.__byrgb[rgbtuple]
91 raise BadColor(rgbtuple)
213 rgbtuple = _namedict.get(color)
214 if rgbtuple is None:
220 rgbtuple = int(red, 16), int(green, 16), int(blue, 16)
221 _namedict[color] = rgbtuple
222 return rgbtuple
226 def triplet_to_rrggbb(rgbtuple): argument
229 hexname = _tripdict.get(rgbtuple)
[all …]
DpyColorChooser.py54 rgbtuple = self.__sb.current_rgb()
65 name = colordb.find_byrgb(rgbtuple)[0]
69 name = ColorDB.triplet_to_rrggbb(rgbtuple)
70 return rgbtuple, name
DChipViewer.py106 rgbtuple = (red, green, blue)
107 rrggbb = ColorDB.triplet_to_rrggbb(rgbtuple)
DStripViewer.py257 def __trackarrow(self, chip, rgbtuple): argument
264 coloraxis = rgbtuple[self.__axis]
283 brightness = ColorDB.triplet_to_brightness(rgbtuple)