Create filled triangle?

What’s the easiest (or any way) to draw a filled triangle, in code (rather than load up an external image from MSpaint).

Using scanline algorithm.