I have several primitive figures to pass to the Graphics function to draw. These figures are weighed with some values, so I'd like to assign a color in accordance with some ColorFunction, say "TemperatureMap". Is it possible to use Graphics like this?
tr = Triangle[{{0, 0}, {0.25, 0}, {0.125, 0.25}}];
value=0.8;
Graphics[{ColorFunction -> "TemperatureMap"[value], tr}]
Graphics
primitives, and a list of values? You'd like for each primitive to have a single color according to its value? $\endgroup$Graphics[{ColorData["TemperatureMap"][0.8], tr}]
$\endgroup$