an>], <span class="hljs-attr">val</span>:<span class="hljs-number">1</span>}
]);

scale.apply(<span class="hljs-number">0.5</span>);</code></pre></div></div><div class="docs-example-code-body"></div></div></div> </div></div></div><div class="qm-docs-topic"><div class="qm-docs-anchor" id="api"><div class="qm-docs-topic-header qm-header-font">Api<a class="qm-docs-anchor-icon" href="#api"></a></div></div><div class="qm-docs-topic-body"><div class="qm-html-paragraph"><a href="/docs/color-scale/changelog">Change