コード例 #1
0
        public Color From(Analysis analysis)
        {
            var metadataAnalysis = new MetadataAnalysis(analysis);
            _weightedColours.AddList(metadataAnalysis.GetColours(), MetadataWeighting);

            var audioAnalysis = new AudioAnalysis(analysis);
            _weightedColours.AddList(audioAnalysis.GetPredominantColours(), AudioWeighting);

            var aggregatedColour = ColorHandling.Aggregate(_weightedColours);
            return ColorHandling.ExaggerateColour(1,aggregatedColour);
        }