Painter::draw_line()
These axis-aligned cases can be done with a single fill call too (which is likely faster).