@arcgis/core
Version:
ArcGIS Maps SDK for JavaScript: A complete 2D and 3D mapping and data visualization API
6 lines (5 loc) • 362 B
JavaScript
/*
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
See https://js.arcgis.com/4.33/esri/copyright.txt for details.
*/
const t=.42,r=.32;function c(c,n){if(c)switch(n){case"bright":{const t=(c[0]+c[1]+c[2])/3;return[t*r+(1-r),t*r+(1-r),t*r+(1-r),c[3]*r]}case"dark":return[c[0]*t,c[1]*t,c[2]*t,c[3]*t]}}export{c as focusAreaHUDColor};