Basic Triangle Example

You can find the source code for this example here.