package com.hangum.tadpole.monitoring.core.editors.monitoring.realtime.composite; import org.eclipse.swt.graphics.RGB; public class ChartColorUtils { /** * https://github.com/ralfstx/rap-d3charts/blob/master/bundles/org.eclipse.rap.addons.d3chart/src/org/eclipse/rap/addons/d3chart/ColorsSWTUtils.java */ private static final RGB[] CAT20_COLORS = { new RGB( 0x1f, 0x77, 0xb4 ), new RGB( 0x17, 0xbe, 0xcf ), new RGB( 0xff, 0xbb, 0x78 ), new RGB( 0xdb, 0xdb, 0x8d ), new RGB( 0xc5, 0xb0, 0xd5 ), new RGB( 0x98, 0xdf, 0x8a ), new RGB( 0x7f, 0x7f, 0x7f ), new RGB( 0xff, 0x98, 0x96 ), new RGB( 0x94, 0x67, 0xbd ), new RGB( 0x8c, 0x56, 0x4b ), new RGB( 0xd6, 0x27, 0x28 ), new RGB( 0xc4, 0x9c, 0x94 ), new RGB( 0xe3, 0x77, 0xc2 ), new RGB( 0xf7, 0xb6, 0xd2 ), new RGB( 0xc7, 0xc7, 0xc7 ), new RGB( 0x2c, 0xa0, 0x2c ), new RGB( 0xbc, 0xbd, 0x22 ), new RGB( 0xff, 0x7f, 0x0e ), new RGB( 0xae, 0xc7, 0xe8 ), new RGB( 0x9e, 0xda, 0xe5 ) }; public static RGB[] getCat20Colors() { return CAT20_COLORS; } }