-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathColoring.cs
More file actions
189 lines (188 loc) · 7.21 KB
/
Copy pathColoring.cs
File metadata and controls
189 lines (188 loc) · 7.21 KB
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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
/// https://developer.mozilla.org/en-US/docs/Web/CSS/color_value
using System;
using System.Drawing;
using Console = Colorful.Console;
namespace ConsoleGameProject
{
public static class Coloring
{
public static void IntroGradientColor(string[] strings)
{
int r = 50; int g = 255; int b = 50;
for (int i = 0; i < strings.Length; i += 2)
{
Console.WriteLine(strings[i], Color.FromArgb(Math.Clamp(r, 0, 255), Math.Clamp(g, 0, 255), Math.Clamp(b, 0, 255)));
if (i + 1 < strings.Length)
{ Console.WriteLine(strings[i + 1], Color.FromArgb(Math.Clamp(r, 0, 255), Math.Clamp(g, 0, 255), Math.Clamp(b, 0, 255))); }
if (i <= 10) { r += 30; b -= 15; } // transition of green to yellow
else if (i > 10) { g -= 30; } // transition of yellow to orange
}
}
public static void PaperworkColor() // papery white and black text
{
Console.ReplaceAllColorsWithDefaults();
Console.BackgroundColor = Color.AntiqueWhite;
Console.Clear();
Console.ForegroundColor = Color.Black;
}
public static void SurfaceColor() // depth 0-10
{
Console.ReplaceAllColorsWithDefaults();
Console.BackgroundColor = Color.LimeGreen;
Console.Clear();
Console.ForegroundColor = Color.Sienna;
Console.CursorVisible = false;
}
public static void SoilColor()// depth 11-50
{
Console.ReplaceAllColorsWithDefaults();
Console.BackgroundColor = Color.FromArgb(101, 67, 33);
Console.Clear();
Console.ForegroundColor = Color.LightGray;
Console.CursorVisible = false;
}
public static void CrustColor() // depth 11-100
{
Console.ReplaceAllColorsWithDefaults();
Console.BackgroundColor = Color.DimGray;
Console.Clear();
Console.ForegroundColor = Color.DarkOrange;
Console.CursorVisible = false;
}
public static void UpperMantleColor() // depth 101-200
{
Console.ReplaceAllColorsWithDefaults();
Console.BackgroundColor = Color.Coral;
Console.Clear();
Console.ForegroundColor = Color.DarkRed;
Console.CursorVisible = false;
}
public static void LowerMantleColor() // depth 201-300
{
Console.ReplaceAllColorsWithDefaults();
Console.BackgroundColor = Color.DarkRed;
Console.Clear();
Console.ForegroundColor = Color.DarkOrange;
Console.CursorVisible = false;
}
public static void OuterCoreColor() // depth 301-400
{
Console.ReplaceAllColorsWithDefaults();
Console.BackgroundColor = Color.DarkOrange;
Console.Clear();
Console.ForegroundColor = Color.Gold;
Console.CursorVisible = false;
}
public static void InnerCoreColor() // depth 401-500
{
Console.ReplaceAllColorsWithDefaults();
Console.BackgroundColor = Color.Goldenrod;
Console.Clear();
Console.ForegroundColor = Color.LightGoldenrodYellow;
Console.CursorVisible = false;
}
public static void DepthIndicator(int depth)
{
if (depth <= 10)
{
Coloring.SurfaceColor();
}
else if (depth <= 50 && depth > 10)
{
Coloring.SoilColor();
}
else if (depth <= 100 && depth > 50)
{
Coloring.CrustColor();
}
else if (depth <= 200 && depth > 100)
{
Coloring.UpperMantleColor();
}
else if (depth <= 300 && depth > 200)
{
Coloring.LowerMantleColor();
}
else if (depth <= 400 && depth > 300)
{
Coloring.OuterCoreColor();
}
else if (depth <= 500 && depth > 400)
{
Coloring.InnerCoreColor();
}
}
public static void LostCityColor()// coffee brownish, text a light sharp blue
{
Console.ReplaceAllColorsWithDefaults();
Console.BackgroundColor = Color.Tan;
Console.Clear();
Console.ForegroundColor = Color.Cyan;
Console.CursorVisible = false;
}
public static void TardisCaveColor()// color this like tardis
{
Console.ReplaceAllColorsWithDefaults();
Console.BackgroundColor = Color.DarkBlue;
Console.Clear();
Console.ForegroundColor = Color.LightBlue;
Console.CursorVisible = false;
}
public static void HeySatanColor()// some kind of red and black theme
{
Console.ReplaceAllColorsWithDefaults();
Console.BackgroundColor = Color.Black;
Console.Clear();
Console.ForegroundColor = Color.Red;
Console.CursorVisible = false;
}
public static void DinosaursColor()// darker but still jungly green background with orangered text
{
Console.ReplaceAllColorsWithDefaults();
Console.BackgroundColor = Color.Green;
Console.Clear();
Console.ForegroundColor = Color.OrangeRed;
Console.CursorVisible = false;
}
public static void HeyCthulhuColor()// dark olive green and dark magenta since cthulu sleeps
{
Console.ReplaceAllColorsWithDefaults();
Console.BackgroundColor = Color.DarkOliveGreen;
Console.Clear();
Console.ForegroundColor = Color.DarkMagenta;
Console.CursorVisible = false;
}
public static void YouFreakingSummonedCthulhuColor()// dark olive green and regular magenta since cthulu wakes maybe I could make this grade to red
{
Console.ReplaceAllColorsWithDefaults();
Console.BackgroundColor = Color.DarkOliveGreen;
Console.Clear();
Console.ForegroundColor = Color.Magenta;
Console.CursorVisible = false;
}
public static void HeyLizardPeepsColor()// deep blue background with gold text
{
Console.ReplaceAllColorsWithDefaults();
Console.BackgroundColor = Color.DarkBlue;
Console.Clear();
Console.ForegroundColor = Color.Gold;
Console.CursorVisible = false;
}
public static void CrewAllDeadColor()// black with text the color of bones
{
Console.ReplaceAllColorsWithDefaults();
Console.BackgroundColor = Color.Black;
Console.Clear();
Console.ForegroundColor = Color.WhiteSmoke;
Console.CursorVisible = false;
}
public static void AtTheCenterColor()// pinks
{
Console.ReplaceAllColorsWithDefaults();
Console.BackgroundColor = Color.MediumOrchid;
Console.Clear();
Console.ForegroundColor = Color.LightPink;
Console.CursorVisible = false;
}
}
}