The lines example shows how to use gdm_draw_line, gdm_draw_circle and gdm_fill_rectangle. It draws a line, circle and small rectangle that move on the screen.
lines
Source file: lines.c