我有一个滑块,用于创建花饰。增加范围为1。有什么方法可以让2的中的滑块增加吗
滑块代码:
<label for="pettalValues">Number of Pettals</label>
<input class"bar" type="range" data-theme="a" id="pettalValues" min="4" max="10" value="6" data-mini="true" onchange="drawFlower()"/>
创建Petals的代码:
for (var i = 0; i < numberOfPetals; i++)
{
CREATES Ellipse SVG and Rotates Depepending on number of Petals Specified.
}
更改
for (var i = 0; i < numberOfPetals; i++)
至
for (var i = 0; i < numberOfPetals; i+=2)