Line 170: | Line 170: | ||
grad.addColorStop(0,'rgba(1,62,4,'+opacity+')'); | grad.addColorStop(0,'rgba(1,62,4,'+opacity+')'); | ||
− | grad.addColorStop(0.2, leafColor); | + | grad.addColorStop(0.2, leafColor[getRandomInt(3)]); |
− | grad.addColorStop(1, leafColor); | + | grad.addColorStop(1, leafColor[getRandomInt(3)]); |
ctx.strokeStyle = grad; | ctx.strokeStyle = grad; | ||
Revision as of 09:57, 6 October 2021