Air-Quality-Web/client_src/js/Helpers/RenderGradient.mjs

14 lines
193 B
JavaScript
Raw Normal View History

"use strict";
function RenderGradient(stops, max) {
let result = {};
for(let value in stops) {
result[value / max] = stops[value];
}
return result;
}
export default RenderGradient;