I am trying to choose a random pixel from an image and change its color to say yellow until no pixel is left. This is the code:
void effect(Graphics g) {