github.com/pyroscope-io/pyroscope@v0.37.3-0.20230725203016-5f6947968bd0/webapp/javascript/components/Heatmap/constants.ts (about) 1 import Color from 'color'; 2 3 export const HEATMAP_HEIGHT = 250; 4 5 export const SELECTED_AREA_BACKGROUND = Color.rgb(240, 240, 240).alpha(0.5); 6 7 export const DEFAULT_HEATMAP_PARAMS = { 8 minValue: 0, 9 maxValue: 1000000000, 10 heatmapTimeBuckets: 128, 11 heatmapValueBuckets: 32, 12 }; 13 14 // viridis palette 15 export const HEATMAP_COLORS = [ 16 Color.rgb(253, 231, 37), 17 Color.rgb(174, 216, 68), 18 Color.rgb(94, 201, 98), 19 Color.rgb(33, 145, 140), 20 Color.rgb(59, 82, 139), 21 Color.rgb(64, 42, 112), 22 Color.rgb(68, 1, 84), 23 ];