ArduinoGraphics - set()

Description

Set a pixel’s color value.

Syntax

YourScreen.set(x, y, r, g, b)
YourScreen.set(x, y, color)

Parameters

x: x position of the pixel y: y position of the pixel r: red color value (0 - 255) g: green color value (0 - 255) b: blue color value (0 - 255) color: 24-bit RGB color, 0xrrggbb

Returns

Nothing

Example

YourScreen.beginDraw();
YourScreen.point(1, 1, 0, 255, 0);
YourScreen.endDraw();