Home | History | Annotate | Download | only in toco

Lines Matching defs:color

37 class Color {
39 Color() {}
40 Color(uint8 r, uint8 g, uint8 b) : r_(r), g_(g), b_(b) {}
41 // Returns the string serialization of this color in graphviz format,
44 // Returns the serialization in graphviz format of a suitable color to use
61 // The color to use for this node; will be used as 'fillcolor'
62 // for its box. See Color::FillColorString. A suitable, different
63 // color will be chosen for the 'fontcolor' for the inside text
64 // label, see Color::TextColorString.
65 Color color;
69 // https://material.io/guidelines/style/color.html
71 Color GetColorForArray(const Model& model, const string& array_name) {
72 // Arrays involved in RNN back-edges have a different color
74 // RNN state, fed by a back-edge. Bold color.
76 return Color(0x0F, 0x9D, 0x58);
79 // Light tone of the same color as RNN states.
81 return Color(0xB7, 0xE1, 0xCD);
84 // Constant parameter arrays have their own bold color
86 return Color(0x42, 0x85, 0xF4);
96 return Color(0x9E, 0x9E, 0x9E);
100 return Color(0x9E, 0x9E, 0x9E);
106 return Color(0xF5, 0xF5, 0xF5);
140 node_properties.color = GetColorForArray(model, array_name);
246 node_properties.color = Color(0xC5, 0x39, 0x29); // Bolder color
254 node_properties.color = Color(0xC5, 0x39, 0x29); // Bolder color
261 node_properties.color = Color(0xC5, 0x39, 0x29); // Bolder color
265 node_properties.color = Color(0xDB, 0x44, 0x37);
325 "\t \"%s\" -> \"%s\" [color=\"#0F9D58\"];\n";
335 "box", op_properties.color.FillColorString().c_str(),
336 op_properties.color.TextColorString().c_str());
347 array_properties.color.FillColorString().c_str(),
348 array_properties.color.TextColorString().c_str());
363 array_properties.color.FillColorString().c_str(),
364 array_properties.color.TextColorString().c_str());