3 #include <SimoxUtility/color/cmaps.h>
4 #include <SimoxUtility/color/interpolation.h>
9 static simox::ColorMap cmap = simox::color::cmaps::viridis();
11 j[
"name"] = vertex.
name;
12 j[
"value"] = vertex.
value;
14 j[
"style"][
"label"] = vertex.
name;
16 j[
"style"][
"fill-color"] = color.to_vector4i();
21 j.at(
"name").get_to(vertex.
name);
22 j.at(
"value").get_to(vertex.
value);
28 j[
"value"] = edge.
value;
34 color = simox::Color::blue();
40 color = simox::Color::black();
44 j[
"style"][
"color"] = color.to_vector4i();
53 j.at(
"value").get_to(edge.
value);
64 j.at(
"position").get_to(graph.
position);