demos/readpix: add option to draw triangle instead of drawpix