API Documentation
Loading...
Searching...
No Matches
ColorPalettes.h
Go to the documentation of this file.
1#pragma once
2#include <NDEVR/RGBColor.h>
3#include <NDEVR/Buffer.h>
4namespace NDEVR
5{
7 {
8 //RGBColor(255, 0, 255) = min
9 //RGBColor(255 2 0) = max
10 Buffer<RGBColor> colors;
11 colors.setSize(14);
12 colors[0] = RGBColor(255, 0, 255);//0
13 colors[1] = RGBColor(185, 2, 254);//20
14 colors[2] = RGBColor(111, 2, 254);//40
15 colors[3] = RGBColor(37, 2, 254);//60
16 colors[4] = RGBColor(0, 45, 187);//80
17 colors[5] = RGBColor(0, 136, 110);//100
18 colors[6] = RGBColor(0, 228, 34);//120
19 colors[7] = RGBColor(43, 255, 0);//140
20 colors[8] = RGBColor(131, 255, 0);//160
21 colors[9] = RGBColor(218, 255, 0);//180
22 colors[10] = RGBColor(255, 213, 0);//200
23 colors[11] = RGBColor(255, 136, 0);//220
24 colors[12] = RGBColor(254, 59, 0);//240
25 colors[13] = RGBColor(255, 2, 0);//260
26 return colors;
27 }
29 {
30 //RGBColor(255, 0, 255) = min
31 //RGBColor(255 2 0) = max
32 Buffer<RGBColor> colors;
33 colors.setSize(15);
34 colors[0] = RGBColor(47, 72, 109);//0
35 colors[1] = RGBColor(124, 56, 59);//20
36 colors[2] = RGBColor(96, 116, 53);//40
37 colors[3] = RGBColor(201, 127, 28);//60
38 colors[4] = RGBColor(122, 141, 132);//80
39 colors[5] = RGBColor(162, 28, 52);//100
40 colors[6] = RGBColor(146, 143, 207);//120
41 colors[7] = RGBColor(199, 193, 130);//140
42 colors[8] = RGBColor(140, 84, 48);//160
43 colors[9] = RGBColor(131, 146, 167);//180
44 colors[10] = RGBColor(73, 108, 102);//200
45 colors[11] = RGBColor(149, 135, 76);//220
46 colors[12] = RGBColor(182, 161, 156);//240
47 colors[13] = RGBColor(241, 209, 50);//260
48 colors[14] = RGBColor(221, 230, 235);//260
49 return colors;
50 }
52 {
53 //RGBColor(255, 0, 255) = min
54 //RGBColor(255 2 0) = max
55 Buffer<RGBColor> colors;
56 colors.setSize(6);
57 colors[0] = RGBColor(137, 49, 239);//0
58 colors[1] = RGBColor(242, 202, 25);//20
59 colors[2] = RGBColor(255, 0, 189);//40
60 colors[3] = RGBColor(0, 87, 233);//60
61 colors[4] = RGBColor(135, 233, 17);//80
62 colors[5] = RGBColor(225, 24, 69);//100
63
64 return colors;
65 }
66}
The equivelent of std::vector but with a bit more control. The basic array unit of the library.
Definition Buffer.hpp:64
void setSize(t_index_type new_size)
Definition Buffer.hpp:1413
Represents a color in the RGB space with optional alpha transparency.
Definition RGBColor.h:53
Definition ACIColor.h:37
Buffer< RGBColor > RainbowContrastPalette()
Definition ColorPalettes.h:51
Buffer< RGBColor > StrataPalette()
Definition ColorPalettes.h:28
Buffer< RGBColor > RainbowPalette()
Definition ColorPalettes.h:6