private static int NextJ(int j) { j = (j + 5 - 1) % 5; if (Curses.HasColors) { int z = rng.Next(3); uint color = Curses.COLOR_PAIR(z); if (z > 0) { color |= Attrs.BOLD; } Stdscr.Attr = color; } return(j); }
private static void GetColor() { uint bold = (rng.Next(2) > 0) ? Attrs.BOLD : Attrs.NORMAL; Stdscr.Attr = Curses.COLOR_PAIR((short)rng.Next(8)) | bold; }
public void Draw() { Stdscr.Attr = Attrs.NORMAL | Curses.COLOR_PAIR(color) | attrs; DrawBlock(pos.x, pos.y, sprite); Stdscr.Attr = Attrs.NORMAL; }