/// <summary> /// Generate a random variation of the color provided using the min and max values provided /// </summary> internal static Color RandomVariation(this Color original, int min, int max) { var change = StaticRandom.Int(min, max); var colorRed = original.R + change; var colorGreen = original.G + change; var colorBlue = original.B + change; return(new Color(colorRed, colorGreen, colorBlue, 255)); }
private void queueEnemyWave() { var source = game.State.Enumerate <UnitSource>().RandomElement(); source.QueueEnemies(debugBlueprint, StaticRandom.Int(5, 10)); }