Home
last modified time | relevance | path

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

/external/python/cpython3/Tools/pynche/
DColorDB.py85 def find_byrgb(self, rgbtuple): argument
88 return self.__byrgb[rgbtuple]
90 raise BadColor(rgbtuple) from None
209 rgbtuple = _namedict.get(color)
210 if rgbtuple is None:
216 rgbtuple = int(red, 16), int(green, 16), int(blue, 16)
217 _namedict[color] = rgbtuple
218 return rgbtuple
222 def triplet_to_rrggbb(rgbtuple): argument
225 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)
/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)