About the Patterns and Code category

Ask questions about creating patterns or code. Share tips and tricks.

  • Post questions relating to pattern code
  • Need help getting a pattern to do what you want?
  • Have a cool bit of code that others might find handy? Share it here.

Old Topic, can we revive this?

I want to create a simple flowing pattern for the scoot.
I want to start with this code:
modes[1] = (f, t) => (1 + f - t) % 1 // moving right

How can I make it two or three or four colors?
Can I set a number of pixels to be one color, for example three pixels to be red (0)
followed by two pixels to be white.

Is this possible?