彩色玻璃
令人敬畏的彩色图片已不再是教堂的专属。
要进行很好的替换,请确保img元素上没有特定的样式,或者将其应用于.stained-glass 。
new StainedGlass ( HTMLImageElement , [ options ] ) ;
options :
deviation :形状的不规则性(默认为0.2)
polygons :创建的多边形数量(默认为100)
stroke :默认与填充颜色相同
strokeWidth :(默认1.51)
triangles :生成Delaunay顶点而不是Voronoï(默认为false)
animated :通过在原始点周围随机使用原始图像的点来选择颜色来为形状的颜色设置动画(默认为false)
animationDuration :颜色之间的过渡时间,以毫秒为单位(默认为2000)
followCurso