Draw 3D objects pixel by pixel on 2D HTML5 canvas