Hi. I have this:
\define color-extract()
<$set name="hex" value="<$macrocall $name=colour name=<<colourName>> mode=inline/>">
<<hex>>
</$set>
\end
This outputs hex codes with a preliminary “#” when I call it by itself.
When I try to pipe it into my JS macro as the value of a parameter, I seem to be getting it interpreted as “1. 000000”.
Here is how I am referencing it:
<$macrocall $name="hex_to_hsl" hex=<<color-extract>> aspect="hue" />
I’ve tried adding different output instructions in various locations but this continues to elude me. Do I need to add the equivalent of “rules only” to my JS macro?