C# Class ArduinoTest.Components.ColorManagment.Service.ColorHelper

Helps with the process of resolving a single color from many colors
Inheritance: IColorHelper
Show file Open project: holymoo/Disposition

Public Methods

Method Description
ComputeAverageColors ( IEnumerable colors ) : Color

Gets the average of all the colors provided

ComputeProminentColor ( IEnumerable colors ) : Color

Computes the color that shows up the most often

Method Details

ComputeAverageColors() public method

Gets the average of all the colors provided
public ComputeAverageColors ( IEnumerable colors ) : Color
colors IEnumerable /// The total collection of sampled colors ///
return Color

ComputeProminentColor() public method

Computes the color that shows up the most often
public ComputeProminentColor ( IEnumerable colors ) : Color
colors IEnumerable /// The total collection of sampled colors ///
return Color