What I think to be the filled in white squares (Destiny)
namespace WindowsFormsApplication1
{
public partial class Form1 : Form
{
private Bitmap err,clean,prize;
public Form1()
{
InitializeComponent();
this.MouseClick += Mouse_Click;
}
private void Form1_Load(object sender, EventArgs e)
{
int[,] toSolve = new int[,] { { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, { 0, 0, 49, 64, 81, 81, 16, 1, 36, 0, 0 }, { 0, 0, 16, 36, 36, 9, 49, 0, 0, 0, 0 }, { 0, 0, 4, 64, 0, 4, 9, 16, 25, 0, 0 }, { 0, 0, 1, 25, 1, 81, 9, 4, 4, 0, 0 }, { 0, 0, 1, 4, 9, 25, 16, 36, 49, 0, 0 }, { 0, 0, 64, 81, 9, 36, 0, 49, 0, 0, 0 }, { 0, 0, 25, 49, 16, 1, 25, 64, 1, 0, 0 }, { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 } };
int[,] toSolveRt = new int[11,11];
for (int k = 0; k < 11; k++)
{
for (int l = 0; l < 11; l++)
{
toSolveRt[k, l] = (int)Math.Sqrt(toSolve[k, l]);
}
}
arraySolver i = new arraySolver(toSolveRt);
Console.WriteLine("\n\n\n");
arraySolver j = new arraySolver(toSolve);
err = new Bitmap("rx_err_crc_fail.jpg");
clean = new Bitmap("clear.png");
prize = new Bitmap("rx_prize.jpg");
List<colorNote> colors = new List<colorNote>();
List<Color> matches = new List<Color>();
matches.AddRange(i.getNotes());
matches.Add(Color.FromArgb(9, 9, 14));
matches.AddRange(j.getNotes());
ScanImage(clean, matches);
ScanImage(prize, matches);
ScanImage(err, matches);
matches.Clear();
}
private void ScanImage(Bitmap b, List<Color> matches)
{
int found = 0;
Color foundColor = Color.Red;
Color hiddenColor = Color.Black;
for (int x = 0; x < b.Width; x++)
{
int currentColor = (x / 50) % matches.Count;
for (int y = 0; y < b.Height; y++)
{
Color pixelColor = b.GetPixel(x, y);
//colorNote check = new colorNote(pixelColor);
//bool didFind = false;
//for (int z = 0; z < colors.Count && !didFind; z++)
//{
// if (colors[z].doesEqual(check))
// {
// colors[z].addOne();
// didFind = true;
// }
//}
//if (!didFind)
//{
// colors.Add(check);
//}
if (matches.Contains(pixelColor))//b.GetPixel(x, y) == Color.FromArgb(19,33,49))//21, 26, 34))
{
found++;
//Console.WriteLine(b.GetPixel(x, y).R + " " + b.GetPixel(x, y).G + " " + b.GetPixel(x, y).B);
b.SetPixel(x, y, foundColor);
}
else
{
//Console.WriteLine(b.GetPixel(x, y).R + " " + b.GetPixel(x, y).G + " " + b.GetPixel(x, y).B);
//b.SetPixel(x, y, hiddenColor);
}
}
}
Console.WriteLine(found);
//foreach (colorNote g in colors)
//{
// if (g.count > 300)
// {
// g.print();
// }
//}
pictureBox1.Image = b;
}
private void Mouse_Click(object sender, EventArgs e)
{
Point test = pictureBox1.PointToClient(Control.MousePosition);
PrintColorAt(test);
}
private void PrintColorAt(Point p)
{
int x = p.X;
int y = p.Y;
Color c = clean.GetPixel(x, y);
Console.WriteLine(c.R + " " + c.G + " " + c.B + " " + c.A);
}
private void pictureBox1_MouseClick(object sender, MouseEventArgs e)
{
Point test = pictureBox1.PointToClient(Control.MousePosition);
PrintColorAt(test);
}
}
public class colorNote
{
public Color c;
public int count = 0;
public colorNote(Color x)
{
c = x;
count = 1;
}
public bool doesEqual(colorNote t)
{
return t.c == c;
}
public void addOne()
{
count++;
}
public void print()
{
Console.WriteLine("Color: ( " + c.R + ", " + c.G + ", " + c.B + " ) + " + count);
}
}
public class arraySolver
{
int[,] toKeep;
public arraySolver(int[,] toSolve)
{
for (int x = 2; x < 9; x++)
{
for (int y = 2; y < 9; y++)
{
int curVal = toSolve[x,y];
int min = Math.Min(x, y);
//Console.Write(" X,Y: " + x + " " + y + " (" + (x - min) + ", " + (y - min) + ") (");
toSolve[x - min, y - min] += curVal;
min = Math.Min(x, 10 - y);
//Console.Write((x - min) + ", " + (y + min) + ") (");
toSolve[x - min, y + min] += curVal;
min = Math.Min(10 - x, y);
//Console.Write((x + min) + ", " + (y - min) + ") (");
toSolve[x + min, y - min] += curVal;
min = Math.Min(10 - x, 10 - y);
//Console.WriteLine((x + min) + ", " + (y + min) + ") ");
toSolve[x + min, y + min] += curVal;
}
}
for (int y = 0; y < 11; y++)
{
for (int x = 0; x < 11; x++)
{
Console.Write(toSolve[y,x].ToString().PadLeft(3,'0') + " ");
}
Console.WriteLine();
}
toKeep = toSolve;
}
public List<Color> getNotes()
{
List<Color> toRet = new List<Color>();
Color temp = Color.FromArgb(toKeep[0, 0], toKeep[1, 0], toKeep[2, 0]);
toRet.Add(temp);
toRet.Add(Color.FromArgb(temp.B, temp.G, temp.R));
toRet.Add(Color.FromArgb(temp.R, temp.B, temp.G));
toRet.Add(Color.FromArgb(temp.B, temp.R, temp.G));
toRet.Add(Color.FromArgb(temp.G, temp.R, temp.B));
toRet.Add(Color.FromArgb(temp.G, temp.B, temp.R));
temp = Color.FromArgb(toKeep[0,2], toKeep[0,3], toKeep[0,4]);
toRet.Add(temp);
toRet.Add(Color.FromArgb(temp.B, temp.G, temp.R));
toRet.Add(Color.FromArgb(temp.R, temp.B, temp.G));
toRet.Add(Color.FromArgb(temp.B, temp.R, temp.G));
toRet.Add(Color.FromArgb(temp.G, temp.R, temp.B));
toRet.Add(Color.FromArgb(temp.G, temp.B, temp.R));
temp = Color.FromArgb(toKeep[0,6], toKeep[0,7], toKeep[0,8]);
toRet.Add(temp);
toRet.Add(Color.FromArgb(temp.B, temp.G, temp.R));
toRet.Add(Color.FromArgb(temp.R, temp.B, temp.G));
toRet.Add(Color.FromArgb(temp.B, temp.R, temp.G));
toRet.Add(Color.FromArgb(temp.G, temp.R, temp.B));
toRet.Add(Color.FromArgb(temp.G, temp.B, temp.R));
temp = Color.FromArgb(toKeep[0, 10], toKeep[1, 10], toKeep[2, 10]);
toRet.Add(temp);
toRet.Add(Color.FromArgb(temp.B, temp.G, temp.R));
toRet.Add(Color.FromArgb(temp.R, temp.B, temp.G));
toRet.Add(Color.FromArgb(temp.B, temp.R, temp.G));
toRet.Add(Color.FromArgb(temp.G, temp.R, temp.B));
toRet.Add(Color.FromArgb(temp.G, temp.B, temp.R));
temp = Color.FromArgb(toKeep[4, 10], toKeep[5, 10], toKeep[6, 10]);
toRet.Add(temp);
toRet.Add(Color.FromArgb(temp.B, temp.G, temp.R));
toRet.Add(Color.FromArgb(temp.R, temp.B, temp.G));
toRet.Add(Color.FromArgb(temp.B, temp.R, temp.G));
toRet.Add(Color.FromArgb(temp.G, temp.R, temp.B));
toRet.Add(Color.FromArgb(temp.G, temp.B, temp.R));
temp = Color.FromArgb(toKeep[8, 10], toKeep[9, 10], toKeep[10, 10]);
toRet.Add(temp);
toRet.Add(Color.FromArgb(temp.B, temp.G, temp.R));
toRet.Add(Color.FromArgb(temp.R, temp.B, temp.G));
toRet.Add(Color.FromArgb(temp.B, temp.R, temp.G));
toRet.Add(Color.FromArgb(temp.G, temp.R, temp.B));
toRet.Add(Color.FromArgb(temp.G, temp.B, temp.R));
temp = Color.FromArgb(toKeep[10, 6], toKeep[10, 7], toKeep[10, 8]);
toRet.Add(temp);
toRet.Add(Color.FromArgb(temp.B, temp.G, temp.R));
toRet.Add(Color.FromArgb(temp.R, temp.B, temp.G));
toRet.Add(Color.FromArgb(temp.B, temp.R, temp.G));
toRet.Add(Color.FromArgb(temp.G, temp.R, temp.B));
toRet.Add(Color.FromArgb(temp.G, temp.B, temp.R));
temp = Color.FromArgb(toKeep[10, 2], toKeep[10, 3], toKeep[10, 4]);
toRet.Add(temp);
toRet.Add(Color.FromArgb(temp.B, temp.G, temp.R));
toRet.Add(Color.FromArgb(temp.R, temp.B, temp.G));
toRet.Add(Color.FromArgb(temp.B, temp.R, temp.G));
toRet.Add(Color.FromArgb(temp.G, temp.R, temp.B));
toRet.Add(Color.FromArgb(temp.G, temp.B, temp.R));
temp = Color.FromArgb(toKeep[8, 0], toKeep[9, 0], toKeep[10, 0]);
toRet.Add(temp);
toRet.Add(Color.FromArgb(temp.B, temp.G, temp.R));
toRet.Add(Color.FromArgb(temp.R, temp.B, temp.G));
toRet.Add(Color.FromArgb(temp.B, temp.R, temp.G));
toRet.Add(Color.FromArgb(temp.G, temp.R, temp.B));
toRet.Add(Color.FromArgb(temp.G, temp.B, temp.R));
return toRet;
}
}
}
Complete thread:
- COMM_SPIKE.INTERCEPT // ACTION REQUESTED -
/Sekhmet/,
2014-04-30, 15:54
- Why does Sekhmet get to have a .gif avatar? :( -
Grizzlei,
2014-04-30, 15:58
- Why does Sekhmet get to have a .gif avatar? :( -
Revenant1988,
2014-04-30, 16:13
- Why does Sekhmet get to have a .gif avatar? :( -
Grizzlei,
2014-04-30, 16:19
- Why does Sekhmet get to have a .gif avatar? :( -
stabbim,
2014-05-05, 22:23
- Why does Sekhmet get to have a .gif avatar? :( - General Vagueness, 2014-05-05, 23:33
- Why does Sekhmet get to have a .gif avatar? :( -
stabbim,
2014-05-05, 22:23
- Why does Sekhmet get to have a .gif avatar? :( -
Grizzlei,
2014-04-30, 16:19
- Why does Sekhmet get to have a .gif avatar? :( -
Revenant1988,
2014-04-30, 16:13
- This looks easy. - INSANEdrive, 2014-04-30, 16:32
- Starting Point? -
Zero,
2014-04-30, 16:35
- Starting Point? - INSANEdrive, 2014-04-30, 16:40
- Starting Point? -
uberfoop,
2014-04-30, 16:43
- Sorry, kinda misspoke on that bit. But you're right. - Zero, 2014-04-30, 16:47
- How 'bout the other text. -
INSANEdrive,
2014-04-30, 16:59
- How 'bout the other text. -
Zero,
2014-04-30, 17:15
- Would be nice. Doubt it per context. - INSANEdrive, 2014-04-30, 17:19
- How 'bout the other text. - /Sekhmet/, 2014-04-30, 17:42
- How 'bout the other text. -
Zero,
2014-04-30, 17:15
- COMM_SPIKE.INTERCEPT // ACTION REQUESTED - Relativiox, 2014-04-30, 16:58
- Could the time of the message help?1424h is 02:24 PM. - INSANEdrive, 2014-04-30, 17:16
- Drink. More O-val-tine - Ill take that prize now! :D - INSANEdrive, 2014-04-30, 17:26
- Found info encoded as ASCII in the image -
Samusaaron3,
2014-04-30, 17:47
- How? -
INSANEdrive,
2014-04-30, 17:49
- How? -
Samusaaron3,
2014-04-30, 17:54
- How? -
INSANEdrive,
2014-04-30, 17:59
- Well, it's just ASCII encoding... -
uberfoop,
2014-04-30, 18:01
- Ain't my area of expertise. - INSANEdrive, 2014-04-30, 18:04
- Well, it's just ASCII encoding... -
petetheduck,
2014-04-30, 18:04
- Well, it's just ASCII encoding... - uberfoop, 2014-04-30, 18:06
- Well, it's just ASCII encoding... -
uberfoop,
2014-04-30, 18:01
- How? -
INSANEdrive,
2014-04-30, 17:59
- How? -
Samusaaron3,
2014-04-30, 17:54
- Greyscale intensity is code? -
ZackDark,
2014-04-30, 18:18
- Greyscale intensity is code? -
Samusaaron3,
2014-04-30, 18:19
- Greyscale intensity is code? - Samusaaron3, 2014-04-30, 18:41
- Greyscale intensity is code? - INSANEdrive, 2014-04-30, 18:19
- Greyscale intensity is code? -
Samusaaron3,
2014-04-30, 18:19
- Nice Find! - UnrealCh13f, 2014-04-30, 19:07
- How? -
INSANEdrive,
2014-04-30, 17:49
- WHAT DO YOU WANT FROM ME -
petetheduck,
2014-04-30, 18:20
- Grayscale something for the sake of something. -
INSANEdrive,
2014-04-30, 18:38
- Grayscale something for the sake of something. -
Xenos,
2014-04-30, 18:42
- I have an idea. One moment. Edit:Nope - INSANEdrive, 2014-04-30, 18:42
- The squares are squares! -
BeingU,
2014-05-01, 01:24
- The squares are squares! - Hoovaloov, 2014-05-01, 01:42
- The squares are squares! -
Danteburning,
2014-05-03, 12:26
- The squares are squares! - INSANEdrive, 2014-05-03, 12:28
- The squares are squares! -
BeingU,
2014-05-03, 12:48
- The squares are squares! - Danteburning, 2014-05-03, 12:55
- Grayscale something for the sake of something. -
Xenos,
2014-04-30, 18:42
- Grayscale something for the sake of something. -
INSANEdrive,
2014-04-30, 18:38
- Any Ideas on what the squares around it have to do with? -
INSANEdrive,
2014-04-30, 18:51
- Hard to say - Zero, 2014-04-30, 18:54
- /Sekhmet/, What's your take on the squares? - INSANEdrive, 2014-04-30, 19:18
- What I've Discovered So Far -
Hoovaloov,
2014-05-01, 00:50
- What I've Discovered So Far -
Claude Errera,
2014-05-01, 07:10
- +1 Laughed out loud - ZackDark, 2014-05-01, 11:52
- The proverbial square one - INSANEdrive, 2014-05-01, 07:44
- What I've Discovered So Far -
Claude Errera,
2014-05-01, 07:10
- RGB Codes -
UnrealCh13f,
2014-05-01, 13:01
- RGB Codes - Hoovaloov, 2014-05-01, 13:13
- What about the white blocks? -
ZackDark,
2014-05-01, 18:13
- Traced Background Lines with Square Roots -
Hoovaloov,
2014-05-01, 18:48
- Traced Background Lines with Square Roots -
Zero,
2014-05-01, 19:07
- Traced Background Lines with Square Roots -
Hoovaloov,
2014-05-01, 19:14
- Traced Background Lines with Square Roots -
Zero,
2014-05-01, 19:16
- Hmm, I see that as well - ZackDark, 2014-05-01, 19:31
- Random Thoughts -
Hoovaloov,
2014-05-01, 19:35
- What I think to be the filled in white squares -
specops115,
2014-05-01, 19:42
- What I think to be the filled in white squares - specops115, 2014-05-01, 19:44
- What I think to be the filled in white squares -
Hoovaloov,
2014-05-01, 19:58
- What I think to be the filled in white squares - specops115, 2014-05-01, 20:04
- What I think to be the filled in white squares -
specops115,
2014-05-01, 19:42
- Traced Background Lines with Square Roots -
Zero,
2014-05-01, 19:16
- Traced Background Lines with Square Roots -
Hoovaloov,
2014-05-01, 19:14
- /Sekhmet/ Are we on the right track? -
Hoovaloov,
2014-05-02, 08:39
- "You may rely on it" -
/Sekhmet/,
2014-05-02, 11:24
- "You may rely on it" - INSANEdrive, 2014-05-02, 11:31
- "You may rely on it" -
Hoovaloov,
2014-05-02, 12:35
- "You may rely on it" - INSANEdrive, 2014-05-02, 12:53
- Shot in the dark -
ZackDark,
2014-05-02, 15:07
- Shot in the dark -
INSANEdrive,
2014-05-02, 16:12
- Exactly =( - ZackDark, 2014-05-02, 17:48
- Shot in the dark -
INSANEdrive,
2014-05-02, 16:12
- "You may rely on it" - Danteburning, 2014-05-03, 01:45
- "You may rely on it" -
/Sekhmet/,
2014-05-02, 11:24
- Traced Background Lines with Square Roots -
Zero,
2014-05-01, 19:07
- Traced Background Lines with Square Roots -
Hoovaloov,
2014-05-01, 18:48
- Meanwhile in Cell Block #Q... - INSANEdrive, 2014-05-01, 21:14
- Red Herring? -
TrMako,
2014-05-02, 10:10
- Red Herring? - INSANEdrive, 2014-05-02, 10:34
- The image text might be nothing... -
INSANEdrive,
2014-05-02, 13:19
- The image text might be nothing... - Danteburning, 2014-05-02, 17:46
- I've got nothing. - Sunburned_Goose, 2014-05-02, 14:38
- Text and background source image located -
petetheduck,
2014-05-02, 18:00
- Text and background source image located -
Danteburning,
2014-05-02, 18:04
- Text and background source image located - Samusaaron3, 2014-05-02, 19:37
- THANK YOU PETE! XD - INSANEdrive, 2014-05-02, 18:18
- Text and background source image located -
Hoovaloov,
2014-05-03, 14:15
- Text and background source image located -
petetheduck,
2014-05-03, 14:48
- Text and background source image located - INSANEdrive, 2014-05-03, 15:01
- Text and background source image located -
petetheduck,
2014-05-03, 14:48
- Text and background source image located -
Danteburning,
2014-05-02, 18:04
- Maybe something here for you code whizzes? -
Danteburning,
2014-05-02, 18:31
- Maybe something here for you code whizzes? -
Zero,
2014-05-02, 19:02
- Maybe something here for you code whizzes? -
Danteburning,
2014-05-02, 19:16
- Maybe something here for you code whizzes? -
Danteburning,
2014-05-02, 19:29
- Maybe something here for you code whizzes? -
Danteburning,
2014-05-02, 19:39
- Maybe something here for you code whizzes? -
Old Fire Thief,
2014-05-03, 08:50
- Maybe something here for you code whizzes? -
INSANEdrive,
2014-05-03, 10:33
- Maybe something here for you code whizzes? - Danteburning, 2014-05-03, 10:50
- Maybe something here for you code whizzes? -
INSANEdrive,
2014-05-03, 10:33
- Maybe something here for you code whizzes? -
Old Fire Thief,
2014-05-03, 08:50
- Maybe something here for you code whizzes? -
Danteburning,
2014-05-02, 19:39
- Maybe something here for you code whizzes? -
Danteburning,
2014-05-02, 19:29
- Maybe something here for you code whizzes? -
Danteburning,
2014-05-02, 19:16
- Maybe something here for you code whizzes? -
/Sekhmet/,
2014-05-03, 10:27
- Overlapping Boxes and Highlighted 7s -
Hoovaloov,
2014-05-03, 15:45
- I think... I have something. Its Big. - INSANEdrive, 2014-05-03, 16:46
- Overlapping Boxes and Highlighted 7s -
Hoovaloov,
2014-05-03, 15:45
- Maybe something here for you code whizzes? -
Zero,
2014-05-02, 19:02
- Review of Events -
INSANEdrive,
2014-05-02, 18:54
- We need more reviews like this - ZackDark, 2014-05-02, 22:46
- clu255pe0id0ae.png - UnrealCh13f, 2014-05-03, 12:21
- Boxing the Sevens -- The answer to everything? -
BeingU,
2014-05-03, 17:06
- Boxing the Sevens -- The answer to everything? - petetheduck, 2014-05-03, 17:15
- Your Call /Sekhmet/. Is this the answer ? ^^^ - INSANEdrive, 2014-05-03, 17:21
- Boxing the Sevens -- The answer to everything? -
Hoovaloov,
2014-05-03, 17:44
- Read his post again. -
INSANEdrive,
2014-05-03, 17:55
- Read his post again. - Hoovaloov, 2014-05-03, 17:57
- Read his post again. -
INSANEdrive,
2014-05-03, 17:55
- Just in case. -
INSANEdrive,
2014-05-03, 18:08
- Just in case. -
BeingU,
2014-05-03, 18:32
- Just in case. - Danteburning, 2014-05-03, 20:37
- Just in case. -
BeingU,
2014-05-03, 18:32
- Boxing the Sevens -- The answer to everything? - Stephen Laughlin, 2014-05-03, 19:44
- Boxing the Sevens -- The answer to everything? - Danteburning, 2014-05-03, 20:33
- WINNER WINNER CHICKEN DINNER. -
/Sekhmet/,
2014-05-04, 00:22
- WINNER WINNER CHICKEN DINNER. -
BeingU,
2014-05-04, 01:47
- WINNER WINNER CHICKEN DINNER. - specops115, 2014-05-04, 06:22
- WINNER WINNER CHICKEN DINNER. - Samusaaron3, 2014-05-05, 00:28
- WINNER WINNER CHICKEN DINNER. - Decom, 2014-05-04, 04:51
- WINNER WINNER CHICKEN DINNER. -
BeingU,
2014-05-04, 01:47
- Congrats! - Zero, 2014-05-04, 00:50
- Boxing the Sevens -- The answer to everything? - General Vagueness, 2014-05-05, 23:32
- Why does Sekhmet get to have a .gif avatar? :( -
Grizzlei,
2014-04-30, 15:58