it gets the color code (R,G,B), gets the avg., makes a shade of grey (black to white), and draws a pixel at that point. Uses a FOR loop using given arguments(such as x,y,x2,y2,color to shade at,mode (now it can add a tint of any color)