Changed font color mapping to be more specific.
Since we moved the function out of the module for text specifically.
This commit is contained in:
@@ -105,7 +105,7 @@
|
||||
</div>
|
||||
<pre><code class="language-js">
|
||||
const fontColorElem = document.getElementById("font-color-map-demo");
|
||||
ask.mappings.coloring.mapRgba({ // Under mappings, the text module. We just want to map one of the RGBA color components...
|
||||
ask.mappings.coloring.mapFontRgba({ // Under mappings, the text module. We just want to map one of the RGBA color components...
|
||||
element: fontColorElem, // The element to map (same as above examples).
|
||||
color: "r", // Choose the red component.
|
||||
lowerBin: 128, // All other values are what we've seen above.
|
||||
@@ -173,7 +173,7 @@
|
||||
ask.mappings.dimensions.mapHeight(squareElemConf);
|
||||
|
||||
const fontColorElem = document.getElementById("font-color-map-demo");
|
||||
ask.mappings.coloring.mapRgba({
|
||||
ask.mappings.coloring.mapFontRgba({
|
||||
element: fontColorElem,
|
||||
color: "r",
|
||||
lowerBin: 128,
|
||||
|
Reference in New Issue
Block a user