代码片段:
while( 计数-- ) {
var radius = rand( opt.radiusMin, opt.radiusMax ),
blur = rand( opt.blurMin, opt.blurMax ),
x = 兰特( 0, CW ),
y = 兰特( 0, ch ),
hue = rand(opt.hueMin, opt.hueMax ),
saturation = rand( opt.saturationMin, opt.saturationMax ),
亮度 = rand( opt.lightnessMin, opt.lightnessMax ),
alpha = rand( opt.alphaMin, opt.alphaMax );
ctx1.shadowColor = hsla( 色调, 饱和度, 亮度, alpha );
ctx1.shadowBlur = 模糊;
ctx1.beginPath();
ctx1.arc( x, y, 半径, 0, Twopi );
ctx1.closePath();
ctx1.fill();
}