aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/core/graph/colors.h
diff options
context:
space:
mode:
Diffstat (limited to 'tensorflow/core/graph/colors.h')
-rw-r--r--tensorflow/core/graph/colors.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/tensorflow/core/graph/colors.h b/tensorflow/core/graph/colors.h
new file mode 100644
index 0000000000..150c8dc025
--- /dev/null
+++ b/tensorflow/core/graph/colors.h
@@ -0,0 +1,14 @@
+#ifndef TENSORFLOW_GRAPH_COLORS_H_
+#define TENSORFLOW_GRAPH_COLORS_H_
+
+namespace tensorflow {
+
+// Return a color drawn from a palette to represent an entity
+// identified by "i". The return value has the form "#RRGGBB" Note
+// that the palette has a limited set of colors and therefore colors
+// will be reused eventually.
+const char* ColorFor(int dindex);
+
+} // namespace tensorflow
+
+#endif // TENSORFLOW_GRAPH_COLORS_H_