MCPcopy Index your code
hub / github.com/python/cpython / intensityToColor

Function intensityToColor

Lib/profiling/sampling/_heatmap_assets/heatmap_shared.js:33–40  ·  view source on GitHub ↗
(intensity)

Source from the content-addressed store, hash-verified

31// ============================================================================
32
33function intensityToColor(intensity) {
34 const level = intensityToHeatLevel(intensity);
35 if (level === 0) {
36 return 'transparent';
37 }
38 const rootStyle = getComputedStyle(document.documentElement);
39 return rootStyle.getPropertyValue(`--heat-${level}`).trim();
40}
41
42// ============================================================================
43// Theme Support

Callers 2

applyLineColorsFunction · 0.85
applyHeatmapBarColorsFunction · 0.85

Calls 1

intensityToHeatLevelFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…