Create a drawTriangle(int x, int y, int size)
method that allows you to draw a triangle on a certain given location with a certain size. The location is entered as a x,y coordinate which refers to the top-left corner of the triangle (virtual) box.
Fill out the screen with random triangles as shown in the example by invoking your newly created method several times. Also change the size of each triangle by using the getRandomValue
method from SaxionApp.
You can use the image below to figure out how to calculate the triangle coordinates.