Beispiel #1
0
        public static ChromaLinkCustom Max(this ChromaLinkCustom chromaLink, Color c)
        {
            for (var i = 0; i < ChromaLinkConstants.MaxLeds; i++)
            {
                chromaLink[i] = chromaLink[i].Max(c);
            }

            return(chromaLink);
        }
Beispiel #2
0
        public static ChromaLinkCustom Combine(this ChromaLinkCustom chromaLink, Color c, double cPct = 0.5)
        {
            for (var i = 0; i < ChromaLinkConstants.MaxLeds; i++)
            {
                chromaLink[i] = chromaLink[i].Combine(c, cPct);
            }

            return(chromaLink);
        }
Beispiel #3
0
            private void Render(ChromaLinkCustom chromaLink, Color c)
            {
                if (_angle > 90)
                {
                    return;
                }

                var i = (_angle % (ChromaLinkConstants.MaxLeds - 1)) + 1;

                chromaLink[i] = chromaLink[i].Max(c);
            }