示例#1
0
        public void AssignFrom(Sensor.LED led)
        {
            byte[] colorData = led.GetFixedRGBCycleColors();
            int    numColors = GetNumColors();
            int    j;

            for (int i = 0; i < numColors; i++)
            {
                j         = i * 3;
                colors[i] = new Color(colorData[j], colorData[j + 1], colorData[j + 2]);
            }
        }
示例#2
0
 public void AssignFrom(Sensor.LED led)
 {
     byte[] colorData = led.GetFixedRGBCycleColors();
     m_color = new Color(colorData[0], colorData[1], colorData[2]);
 }