File: ColorGen.h

package info (click to toggle)
quickplot 0.8.6-1.1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 1,548 kB
  • ctags: 1,019
  • sloc: cpp: 10,052; sh: 7,597; makefile: 176
file content (31 lines) | stat: -rw-r--r-- 624 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/* Copyright (c) 1998, 1999, 2003, 2004  Lance Arsenault, (GNU GPL (v2+))
 */



#define NUM_COLORS  12

class ColorGen // keeps a list of colors and cycles through them.
{
public:

  ColorGen(void);

  // get line and point colors.
  void getColors(gushort &lr, gushort &lg, gushort &lb,
                 gushort &pr, gushort &pg, gushort &pb);

  void getGridColor(gushort &r, gushort &g, gushort &b);

  void getBackgroundColor(gushort &r, gushort &g, gushort &b);
  
  static gushort gridColor[3];
  static gushort backgroundColor[3];

  
private:

  unsigned int count;

  static const gushort color[NUM_COLORS][3];
};