private void DrawPlayers(MagickImage image) { var players = playerRepository.GetAllPlayers(); var drawables = new Drawables(); foreach (var player in players) { drawables.FillColor(player.IsIt ? MagickColors.Red : MagickColors.Black); drawables.Ellipse(player.X * cellWidth + (cellWidth / 2), player.Y * cellHeight + (cellHeight / 2), cellWidth / 2, cellHeight / 2, 0, 360); var yPosition = player.Y < mapHeight - 2 ? player.Y * cellHeight + (cellHeight * 2) : player.Y * cellHeight; drawables.FillColor(MagickColors.Black); drawables.TextAlignment(TextAlignment.Center); drawables.Text(player.X * cellWidth + (cellWidth / 2), yPosition, player.Name); } drawables.Draw(image); }