Simple computer graphics algorithms for drawing dot by dot (SDL)