write a code for the "Fill with color" tool functionality in MS Paint or Photoshop.
Utilisateur anonyme
Use the screen as 2D array and use recursion to color it, but be sure from the case when color_old = color_new, because if you get this with out if statement you will stuck in infinite loop.