Adobe Interview Question

How do you sample a triangle?