Skip to content

Instantly share code, notes, and snippets.

@GrantByrne
Created January 8, 2014 15:58
Show Gist options
  • Save GrantByrne/8319050 to your computer and use it in GitHub Desktop.
Save GrantByrne/8319050 to your computer and use it in GitHub Desktop.
class Program
{
static void Main(string[] args)
{
ILitmus litmus = new DirectxColorProvider();
// Get the Average Color of the Screen
LitmusColor color = litmus.GetAverageColor();
Console.WriteLine("Red:{0}\nGreen:{1}\nBlue:{2}\n", color.Red, color.Green, color.Blue);
Console.ReadLine();
}
}
class Program
{
static void Main(string[] args)
{
ILitmus litmus = new DirectxColorProvider();
// Get the Average Color of the Screen
LitmusColor color = litmus.GetMostCommonColor();
Console.WriteLine("Red:{0}\nGreen:{1}\nBlue:{2}\n", color.Red, color.Green, color.Blue);
Console.ReadLine();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment