Example #1
0
 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;
 }
Example #2
0
 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;
 }
Example #3
0
 public TransparentColour(int r, int g, int b, int a, Colours foreground, Colours background, Pixal type) : base(r, g, b, a, foreground, background, type)
 {
 }
Example #4
0
 public static Colour ByCode(short code, Pixal pixal)
 {
     return(AllColours.FirstOrDefault(x => x.Code == code && x.Pixal == pixal));
 }
Example #5
0
 public static Colour ByHex(string hex, Pixal pixal)
 {
     return(AllColours.FirstOrDefault(x => x.Hex.Equals(hex) && x.Pixal == pixal));
 }