Creating a 2d triangle

Thanks you! You helped me a lot!