Home
last modified time | relevance | path

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

/third_party/python/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)