Illumilib/IllumilibLighting.cs
/// <summary>
/// Sets the lighting for the given x, y position on the keyboard to the given color.
/// The position is zero-based, with 0, 0 being the key in the top left corner of the keyboard.
/// </summary>
/// <param name="x">The zero-based x position of the key</param>
/// <param name="y">The zero-based y position of the key</param>
/// <param name="r">The color's red value, between 0 and 1</param>
/// <param name="g">The color's green value, between 0 and 1</param>
/// <param name="b">The color's blue value, between 0 and 1</param>
/// <exception cref="ArgumentOutOfRangeException">Thrown if the positions are out of range in relation to <see cref="KeyboardWidth"/> and <see cref="KeyboardHeight"/></exception>
Sets the lighting for the given x, y position on the keyboard to the given color.
The position is zero-based, with 0, 0 being the key in the top left corner of the keyboard.
Sets the lighting for the given x y position on the keyboard to the given color . The position is zero - based with 0 0 being the key in the top left corner of the keyboard .
public static void SetKeyboardLighting(int x, int y, float r, float g, float b) {
            if (x < 0 || x >= KeyboardWidth)
                throw new ArgumentOutOfRangeException(nameof(x));
            if (y < 0 || y >= KeyboardHeight)
                throw new ArgumentOutOfRangeException(nameof(y));
            ForEach(s => s.SetKeyboardLighting(x, y, r, g, b));
        }
public static void SetKeyboardLighting ( int x , int y , float r , float g , float b ) { if ( x < 0 || x >= KeyboardWidth ) throw new ArgumentOutOfRangeException ( nameof ( x ) ) ; if ( y < 0 || y >= KeyboardHeight ) throw new ArgumentOutOfRangeException ( nameof ( y ) ) ; ForEach ( s => s . SetKeyboardLighting ( x , y , r , g , b ) ) ; }
Sets the lighting for the given x, y position on the keyboard to the given color.
Sets the lighting for the given x y position on the keyboard to the given color .
Thrown if the positions are out of range in relation to  and
Thrown if the positions are out of range in relation to and
x
int
The zero-based x position of the key
The zero - based x position of the key
y
int
The zero-based y position of the key
The zero - based y position of the key
r
float
The color's red value, between 0 and 1
The color ' s red value between 0 and 1
g
float
The color's green value, between 0 and 1
The color ' s green value between 0 and 1
b
float
The color's blue value, between 0 and 1
The color ' s blue value between 0 and 1