MCPcopy Create free account
hub / github.com/OpenDriveLab/DriveAdapter / tint

Function tint

leaderboard/team_code/driveadapter_agent.py:51–59  ·  view source on GitHub ↗
(color, factor)

Source from the content-addressed store, hash-verified

49COLOR_ALUMINIUM_3 = (136, 138, 133)
50COLOR_ALUMINIUM_5 = (46, 52, 54)
51def tint(color, factor):
52 r, g, b = color
53 r = int(r + (255-r) * factor)
54 g = int(g + (255-g) * factor)
55 b = int(b + (255-b) * factor)
56 r = min(r, 255)
57 g = min(g, 255)
58 b = min(b, 255)
59 return (r, g, b)
60
61
62

Callers 1

visualize_roach_inputMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected