$usedPath = $whiteCyanBluePath $colorScheme1 = $rainbowPath $colorScheme2 = $whiteCyanBluePath $colorScheme3 = $blackRedBlackPath $colorScheme4 = $whitePath $colorCounter = 1 def cycleColors $colorCounter += 1 if $colorCounter == 5 $colorCounter = 1 end if $colorCounter == 1 $usedPath = $colorScheme1 elsif $colorCounter == 2 $usedPath = $colorScheme2 elsif $colorCounter == 3 $usedPath = $colorScheme3 else $usedPath = $colorScheme4 end end def randomColors $colorIndex = 3 color1 = randomColor $usedPath = BezierPath.new([color1, randomColor, randomColor, color1]) end