Пример #1
0
        public static void Draw(IEnumerable <DDCrash> crashes, I3Color color, double a = 1.0)
        {
            DDDraw.SetAlpha(a);
            DDDraw.SetBright(color);

            Draw(crashes);

            DDDraw.Reset();
        }
Пример #2
0
        public static void DrawCurtain(double whiteLevel = -1.0)
        {
            if (whiteLevel == 0.0)
            {
                return;
            }

            whiteLevel = SCommon.ToRange(whiteLevel, -1.0, 1.0);

            if (whiteLevel < 0.0)
            {
                DDDraw.SetAlpha(-whiteLevel);
                DDDraw.SetBright(0.0, 0.0, 0.0);
            }
            else
            {
                DDDraw.SetAlpha(whiteLevel);
            }

            DDDraw.DrawRect(Ground.I.Picture.WhiteBox, 0, 0, DDConsts.Screen_W, DDConsts.Screen_H);
            DDDraw.Reset();
        }
Пример #3
0
 public void DrawToScreen(double a = 0.3)
 {
     DDDraw.SetAlpha(a);
     DDDraw.DrawSimple(this.GetPicture(), 0, 0);
     DDDraw.Reset();
 }