This program randomly generates patterns. To change how often the color changes within the pattern, change the number.
Credit for the idea and most of the script goes to @MrShah Their tutorial is really helpful.