MCPcopy Create free account
hub / github.com/PyQt5/PyQtClient / map

Method map

Utils/ColorThief.py:393–398  ·  view source on GitHub ↗
(self, color)

Source from the content-addressed store, hash-verified

391 return p_color
392
393 def map(self, color):
394 for i in range(self.vboxes.size()):
395 vbox = self.vboxes.peek(i)
396 if vbox['vbox'].contains(color):
397 return vbox['color']
398 return self.nearest(color)
399
400
401class PQueue(object):

Callers 10

paletteMethod · 0.45
sFunction · 0.45
rFunction · 0.45
aFunction · 0.45
jquery.min.jsFile · 0.45
SFunction · 0.45
HaFunction · 0.45
qbFunction · 0.45

Calls 4

nearestMethod · 0.95
peekMethod · 0.80
containsMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected