Example #1
0
        public static void DrawString(string s, Point p, Color c, Color BackGroundColor)
        {
            GfxStr t = new GfxStr(s, p, 3);

            Filter.Absolute(t, BackGroundColor);
            t.Draw(c);
        }
Example #2
0
 public static void Draw(GfxStr gfx, params Color[] cs)
 {
     for (int i = 0; i < cs.Length; i++)
     {
         Draw(gfx, cs[i]);
     }
 }
Example #3
0
        public static void DrawString(string s, Point p, Color c)
        {
            GfxStr t = new GfxStr(s, p);

            t.Draw(c);
        }
Example #4
0
 public static void Draw(GfxStr gfx, Color c) => spriteBatch.DrawString(gfx.Texture, gfx.Text, new Vector2(gfx.Pos.X + gfx.Edge, gfx.Pos.Y + gfx.Edge), c);