1 package org.simantics.trend.configuration;
6 * @author Tuukka Lehtonen
8 public class TrendConstants {
11 * @see <a href="https://www.simantics.org/redmine/issues/1314">#1314</a>
13 public static final Color[] COLORS = {
14 new Color(0.00f, 0.00f, 1.00f),
15 new Color(0.00f, 0.50f, 0.00f),
16 new Color(1.00f, 0.00f, 0.00f),
17 new Color(0.00f, 0.75f, 0.75f),
18 new Color(0.75f, 0.00f, 0.75f),
19 new Color(0.75f, 0.75f, 0.00f),
20 new Color(0.25f, 0.25f, 0.25f),
21 new Color(0.75f, 0.25f, 0.25f),
22 new Color(0.95f, 0.95f, 0.00f),
23 new Color(0.25f, 0.25f, 0.75f),
24 new Color(0.75f, 0.75f, 0.75f),
25 new Color(0.00f, 1.00f, 0.00f),
26 new Color(0.76f, 0.57f, 0.17f),
27 new Color(0.54f, 0.63f, 0.22f),
28 new Color(0.34f, 0.57f, 0.92f),
29 new Color(1.00f, 0.10f, 0.60f),
30 new Color(0.88f, 0.75f, 0.73f),
31 new Color(0.10f, 0.49f, 0.47f),
32 new Color(0.66f, 0.34f, 0.65f),
33 new Color(0.99f, 0.41f, 0.23f),
36 public static final Color color(int index) {
37 return COLORS[index % COLORS.length];