So what functions do you use to draw opaque polygons?

Look through the documentation for say "alpha". If you're familiar with RGB for setting a colour, then RGBA is the advanced form.
Eg.
RGB=(...