public void SetColor(int light, Color color) { if(light < 0 || light >= NumLights) return; buffer[3 * light + 0] = (byte) (color.Red / 2); buffer[3 * light + 1] = (byte) (color.Green / 2); buffer[3 * light + 2] = (byte) (color.Blue / 2); }
public void TurnOff() { Color = Colors.Black; }
public void Send(ushort data) { Color = (Color) data; }