Functions for drawing lines, squares and so on pixel by pixel