This article mainly introduces html5 using canvas to draw triangles. Friends who need it can refer to it. <canvas id=canvas width=500 height=500 style=background-color: yellow;></canvas> Copy the code