15. Another Challenge

Make sure you have done the warm-up conditional patterns before this!

  • Pick two centers, say (300,150) and (310, 150).
  • Use a big 500x300 canvas.
  • Colors:

    • magenta when the distance to both centers is less than 15
    • red when the distance to left point is less than 15
    • blue when the distance to right point is less than 15
    • white when the distance to either point is less than 30
    • gray otherwise
  • Move the centers to (175,150) and (325, 150). Repeat the pattern by reducing distances to less than 30 by using remainder.