wxPlot 1.8 Real time plot library for wxWidgets

Loading...
Searching...
No Matches
colours.hpp
1#pragma once
2
3#include <wx/wx.h>
4#include <vector>
5
12 typedef enum {
13 // Grundläggande färger
14 PLOT_COLOUR_RED,
15 PLOT_COLOUR_GREEN,
16 PLOT_COLOUR_BLUE,
17 PLOT_COLOUR_YELLOW,
18 PLOT_COLOUR_CYAN,
19 PLOT_COLOUR_MAGENTA,
20 PLOT_COLOUR_BLACK,
21 PLOT_COLOUR_WHITE,
22
23 // Pastellfärger
24 PLOT_COLOUR_LIGHT_PINK,
25 PLOT_COLOUR_LIGHT_BLUE,
26 PLOT_COLOUR_LIGHT_GREEN,
27 PLOT_COLOUR_LIGHT_YELLOW,
28
29 // Jordnära färger
30 PLOT_COLOUR_BROWN,
31 PLOT_COLOUR_SIENNA,
32 PLOT_COLOUR_PERU,
33 PLOT_COLOUR_SADDLE_BROWN,
34
35 // Moderna färger
36 PLOT_COLOUR_TOMATO,
37 PLOT_COLOUR_LIME,
38 PLOT_COLOUR_VIOLET,
39 PLOT_COLOUR_HOT_PINK,
40
41 // Neutrala toner
42 PLOT_COLOUR_DARK_GRAY,
43 PLOT_COLOUR_LIGHT_GRAY,
44 PLOT_COLOUR_GRAY,
45
46 // Dämpade färger
47 PLOT_COLOUR_DARK_SLATE_GRAY,
48 PLOT_COLOUR_DARK_SLATE_BLUE,
49 PLOT_COLOUR_TEAL,
50 PLOT_COLOUR_DARK_GREEN,
51 PLOT_COLOUR_DARK_ORANGE
52} PLOT_COLOUR;
53
59 static std::vector<wxColour> plotColours = {
60 wxColour(255, 0, 0),
61 wxColour(0, 255, 0),
62 wxColour(0, 0, 255),
63 wxColour(255, 255, 0),
64 wxColour(0, 255, 255),
65 wxColour(255, 0, 255),
66 wxColour(0, 0, 0),
67 wxColour(255, 255, 255),
68
69 wxColour(255, 182, 193),
70 wxColour(173, 216, 230),
71 wxColour(144, 238, 144),
72 wxColour(255, 228, 181),
73
74 wxColour(139, 69, 19),
75 wxColour(160, 82, 45),
76 wxColour(205, 133, 63),
77 wxColour(160, 82, 45),
78
79 wxColour(255, 99, 71),
80 wxColour(50, 205, 50),
81 wxColour(238, 130, 238),
82 wxColour(255, 105, 180),
83
84 wxColour(169, 169, 169),
85 wxColour(211, 211, 211),
86 wxColour(128, 128, 128),
87
88 wxColour(47, 79, 79),
89 wxColour(72, 61, 139),
90 wxColour(0, 128, 128),
91 wxColour(0, 100, 0),
92 wxColour(255, 140, 0),
93};