我们将通过改变三角形的-webkit-transform-origin属性使其从顶端开始旋转。
Triangle is rotated from it's tip by changing it's-webkit-transform-origin
如我上面所提到的,我们可以将三角形的类型按照角度或边来分类,在某些情况下,我们提供的三个数值也许不能组成三角形。
As I noted above, we can classify triangle types by angles or sides, and in some instances the three Numbers we supply may not form a valid triangle.
为了便于对图像进行修改和注释,将输出三角形坐标以便稍后应用到图像中。
To facilitate modification and annotation of the image, the triangle coordinates are printed out to be applied to the image later.
The fact that the picture is a little prettier on the far right is testament to the fact that I'm sorting the left half, the left half, the left half, and that's why you get these little triangles, triangles, triangles, that then get merged together.
可以看到最右边的画面,变化很快,先对左半部分排序,然后再左半部分,这就是为什么会有这些小三角形,最后再将它们合并起来。
应用推荐