public static void Draw(IEnumerable <DDCrash> crashes, I3Color color, double a = 1.0) { DDDraw.SetAlpha(a); DDDraw.SetBright(color); Draw(crashes); DDDraw.Reset(); }
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(); }
public void DrawToScreen(double a = 0.3) { DDDraw.SetAlpha(a); DDDraw.DrawSimple(this.GetPicture(), 0, 0); DDDraw.Reset(); }