Display Simple Graphics library  v0.5
Library containing shape, text, and bitmap drawing functions called by various display drivers
Functions
drawPixel.c File Reference
#include "simplegfx.h"

Functions

void drawPixel (screen_t *dev, int x, int y, int color)
 Draws a single pixel in the specified color. More...
 

Function Documentation

◆ drawPixel()

void drawPixel ( screen_t dev,
int  x,
int  y,
int  color 
)

Draws a single pixel in the specified color.

Parameters
devPointer to the display's device structure returned by the initialization function.
xHorizontal coordinate of the pixel, counted from the left side of the screen.
yVertical coordinate of the pixel, counted down from the top of the screen.
colorColor of the pixel, in the format native to the display.