public void SetGlyph(int x, int y, Pixal glyph) { if (x < 0 || x > Width || y < 0 || y > Height) { return; } Glyphs[y * Width + x] = (short)glyph; }
public Colour(int r, int g, int b, int a, Colours foreground, Colours background, Pixal type) { R = r; G = g; B = b; A = a; Foreground = foreground; Background = background; Pixal = type; }
public TransparentColour(int r, int g, int b, int a, Colours foreground, Colours background, Pixal type) : base(r, g, b, a, foreground, background, type) { }
public static Colour ByCode(short code, Pixal pixal) { return(AllColours.FirstOrDefault(x => x.Code == code && x.Pixal == pixal)); }
public static Colour ByHex(string hex, Pixal pixal) { return(AllColours.FirstOrDefault(x => x.Hex.Equals(hex) && x.Pixal == pixal)); }