Hello Allegro

Allegro is a game engine featuring 2d graphics. We will be using this during the first two weeks of this course. The base code comes with a Codeblocks project.

In the following link you can find a simple base code for the task at hand:
https://cglearn.codelight.eu/files/course/1/tasks/HelloAllegro.zip

The task itself is to draw an equilateral triangle in a specific position. In the base code you can find a function drawTriangle(x, y) that is unfinished. The task is to finish it. The final result should look something like the image on the right.

You can choose the size and color of the triangle yourself. Main requirement is that it is a equilateral (all of the sides have the same length) and the center of the triangle is positioned at the coordinates given to the function.

 
;