Exemplo n.º 1
0
        private void UpdateColorHandlingAttributes()
        {
            Dictionary <string, bool> propertyStates = new Dictionary <string, bool>(2);

            propertyStates.Add("StaticColor", ColorHandling.Equals(ChaseColorHandling.StaticColor));
            propertyStates.Add("ColorGradient", !ColorHandling.Equals(ChaseColorHandling.StaticColor));
            SetBrowsable(propertyStates);
        }
Exemplo n.º 2
0
        private void UpdateColorHandlingAttributes()
        {
            Dictionary <string, bool> propertyStates = new Dictionary <string, bool>(2)
            {
                { "StaticColor", ColorHandling.Equals(SpinColorHandling.StaticColor) },
                { "ColorGradient", !ColorHandling.Equals(SpinColorHandling.StaticColor) }
            };

            SetBrowsable(propertyStates);
        }
Exemplo n.º 3
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));
        }