diff --git a/modules/renderers/draw-heightmap.js b/modules/renderers/draw-heightmap.js index 2b470dd6..cefed230 100644 --- a/modules/renderers/draw-heightmap.js +++ b/modules/renderers/draw-heightmap.js @@ -140,9 +140,5 @@ function drawHeightmap() { return chain.filter((d, i) => i % n === 0); } - function getColor(value, scheme = getColorScheme("bright")) { - return scheme(1 - (value < 20 ? value - 5 : value) / 100); - } - TIME && console.timeEnd("drawHeightmap"); } diff --git a/modules/ui/style.js b/modules/ui/style.js index 83edd239..49d1d8fb 100644 --- a/modules/ui/style.js +++ b/modules/ui/style.js @@ -70,6 +70,10 @@ function getColorScheme(scheme = "bright") { return heightmapColorSchemes[scheme]; } +function getColor(value, scheme = getColorScheme("bright")) { + return scheme(1 - (value < 20 ? value - 5 : value) / 100); +} + // Toggle style sections on element select styleElementSelect.on("change", selectStyleElement);