Arduino_MKRRGB - set()
Set a matrix pixel’s color value.
Syntax
Parameters
- x: x position of the pixel.
- x: y position of the pixel.
- r: red color value (o to 255) of the pixel.
- g: green color value (o to 255) of the pixel.
- b: blue color value (o to 255) of the pixel.
Returns
None.
Example
MATRIX.beginDraw();
MATRIX.set(1, 1, 0, 255, 0); // x position, y position, red value, green value, blue value
MATRIX.endDraw();
See also