export function lightenDarkenColor ( col , amt ) { let usePound = false ; if ( col [ 0 ] === '#' ) { col = col . slice ( 1 ) ; usePound = true ; } const num = parseInt ( col , 16 ) ; let r = ( num >> 16 ) + amt ; if ( r > 255 ) r = 255 ; else if ( r < 0 ) r = 0 ; let b = ( ( num >> 8 ) & 0x00ff ) + amt ; if ( b > 255 ) b = 255 ; else if ( b < 0 ) b = 0 ; let g = ( num & 0x0000ff ) + amt ; if ( g > 255 ) g = 255 ; else if ( g < 0 ) g = 0 ; return ( usePound ? '#' : '' ) + ( g | ( b << 8 ) | ( r << 16 ) ) . toString ( 16 ) ; } export const colorPalettes = [ '#099AEB' , '#FCB527' , '#00BFA4' , '#FF9961' , '#52BA52' , '#F26DCC' , '#38D8F7' , '#0776BA' , '#E47700' , '#00BFA4' , '#FF5B00' , '#20822B' , '#D3279F' , '#09BEE2' , '#05588D' , '#BD5800' , '#00BFA4' , '#D63D00' , '#16491C' , '#A51B88' , '#068098' , '#014439' , '#971900' , '#72145E' , ] ;