MCPcopy Create free account
hub / github.com/OpenRaiser/PaperFlow / blend

Function blend

experiments/human_eval/draw_interest_drift_heatmap.py:57–58  ·  view source on GitHub ↗
(c1: tuple[int, int, int], c2: tuple[int, int, int], t: float)

Source from the content-addressed store, hash-verified

55
56
57def blend(c1: tuple[int, int, int], c2: tuple[int, int, int], t: float) -> tuple[int, int, int]:
58 return tuple(round(c1[i] * (1 - t) + c2[i] * t) for i in range(3))
59
60
61def score_for_metric(values: list[float], idx: int, direction: str) -> float:

Callers 1

color_for_scoreFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected