1al_draw_pixel(3)           Library Functions Manual           al_draw_pixel(3)
2
3
4

NAME

6       al_draw_pixel
7

SYNOPSIS

9              #include <allegro5/allegro.h>
10
11              void al_draw_pixel(float x, float y, ALLEGRO_COLOR color)
12

DESCRIPTION

14       Draws  a  single pixel at x, y.  This function, unlike al_put_pixel(3),
15       does blending and, unlike al_put_blended_pixel(3), respects the  trans‐
16       formations.   This function can be slow if called often; if you need to
17       draw a lot of pixels consider using the primitives addon.
18
19       · x - destination x
20
21       · y - destination y
22
23       · color - color of the pixel
24
25         Note: This function may not draw exactly where you expect it to.  See
26         the  pixel-precise  output section on the primitives addon documenta‐
27         tion for details on how to control exactly where the pixel is drawn.
28

SEE ALSO

30       ALLEGRO_COLOR(3), al_put_pixel(3)
31
32
33
34Allegro reference manual                                      al_draw_pixel(3)
Impressum