public Task <IEnumerable <PaletteOption> > GetTargetPalette() { var colours = new[] { Color.White, Color.Gray, Color.Black, Color.Red, Color.Green, Color.Blue, Color.Yellow, Color.Teal, Color.Orange, Color.Purple, Color.Pink }; var palette = colours.Select(c => PaletteOption.FromColor(c)); return(Task.FromResult(palette.AsEnumerable())); }
private static IEnumerable <PaletteOption> GetTestPaletteOptions(params Color[] colours) { return(colours.Select(c => PaletteOption.FromColor(c))); }