Ejemplo n.º 1
0
        /// <summary>
        /// Fade to hue
        /// </summary>
        /// <param name="hue">0-1536, 0-red,512-blue, 1024-green, 1535-almost red</param>
        /// <param name="brightness">0-1</param>
        public void SetColorHue1536(uint hue, float brightness = 1)
        {
            uint r = 0, g = 0, b = 0;

            RGBColors.ConvertHue1536ToRGB(out r, out g, out b, hue, brightness);

            SetColor(r, g, b);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Fade to hue
        /// </summary>
        /// <param name="hue">0-1536, 0-red,512-blue, 1024-green, 1535-almost red</param>
        /// <param name="brightness">0-1</param>
        /// <param name="fadeTime">0-... ms</param>
        public void FadeHue1536(uint hue, float brightness = 1, uint fadeTime = 1000)
        {
            uint r = 0, g = 0, b = 0;

            RGBColors.ConvertHue1536ToRGB(out r, out g, out b, hue, brightness);

            Fade(r, g, b, fadeTime);
        }