I think I got the palettes read

This commit is contained in:
Lani Aung
2021-10-03 21:23:49 -06:00
parent 4b4fffdbf1
commit 7dfa28674e
3 changed files with 56 additions and 12 deletions
+8 -11
View File
@@ -32,26 +32,23 @@ namespace fxl.codes.kisekae.Models
public string FileName { get; }
public string Comment { get; }
public Color[] Colors { get; private set; }
public void ParseColors(byte[] bytes, int depth)
{
Colors = new Color[0];
}
public Color[] Colors { get; set; }
}
public class Color
{
public Color(int red, int green, int blue)
public Color(int red, int green, int blue, int group, int depth)
{
Red = red;
Green = green;
Blue = blue;
var multiplier = depth == 12 ? 16 : 1;
Red = red * multiplier;
Green = green * multiplier;
Blue = blue * multiplier;
Group = group;
}
public int Red { get; }
public int Green { get; }
public int Blue { get; }
public int Group { get; }
}
}