-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCPGEng.Effects.DefaultPalette.cs
78 lines (72 loc) · 2.32 KB
/
CPGEng.Effects.DefaultPalette.cs
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
/*
* Crispycat PixelGraphic Engine
* CPGEng.Effects.DefaultPalette.cs; Default Color Palettes
* (C) 2020 crispycat; https://github.com/crispycat0/CPGEng/LICENSE
* 2020/04/01
*/
namespace CPGEng.Effects {
public static class DefaultPalette {
public static Palette Gray1Bit = new Palette(new System.Collections.Generic.List<ColorInt>() {
new ColorInt(0),
new ColorInt(255, 255, 255)
});
public static Palette Gray2Bit = new Palette(new System.Collections.Generic.List<ColorInt>() {
new ColorInt(0),
new ColorInt(86, 86, 86),
new ColorInt(172, 172, 172),
new ColorInt(255, 255, 255)
});
public static Palette Gray2Bit2 = new Palette(new System.Collections.Generic.List<ColorInt>() {
new ColorInt(0),
new ColorInt(63, 63, 63),
new ColorInt(127, 127, 127),
new ColorInt(255, 255, 255)
});
public static Palette RGB3Bit = new Palette(new System.Collections.Generic.List<ColorInt>() {
new ColorInt(0),
new ColorInt(0, 0, 255),
new ColorInt(0, 255, 0),
new ColorInt(0, 255, 255),
new ColorInt(255, 0, 0),
new ColorInt(255, 0, 255),
new ColorInt(255, 255, 0),
new ColorInt(255, 255, 255)
});
public static Palette RGB4Bit = new Palette(new System.Collections.Generic.List<ColorInt>() {
new ColorInt(0),
new ColorInt(63, 63, 63),
new ColorInt(127, 127, 127),
new ColorInt(255, 255, 255),
new ColorInt(0, 0, 255),
new ColorInt(0, 255, 0),
new ColorInt(0, 255, 255),
new ColorInt(255, 0, 0),
new ColorInt(255, 0, 255),
new ColorInt(255, 255, 0),
new ColorInt(0, 0, 127),
new ColorInt(0, 127, 0),
new ColorInt(0, 127, 127),
new ColorInt(127, 0, 0),
new ColorInt(127, 0, 127),
new ColorInt(127, 127, 0),
});
public static Palette RGB4Bit2 = new Palette(new System.Collections.Generic.List<ColorInt>() {
new ColorInt(0),
new ColorInt(86, 86, 86),
new ColorInt(172, 172, 172),
new ColorInt(255, 255, 255),
new ColorInt(0, 0, 255),
new ColorInt(0, 255, 0),
new ColorInt(0, 255, 255),
new ColorInt(255, 0, 0),
new ColorInt(255, 0, 255),
new ColorInt(255, 255, 0),
new ColorInt(0, 0, 127),
new ColorInt(0, 127, 0),
new ColorInt(0, 127, 191),
new ColorInt(127, 0, 0),
new ColorInt(127, 0, 191),
new ColorInt(127, 127, 0),
});
}
}