1. A method for providing a function of a portable terminal, comprising: activating a color sensor upon execution of an application; displaying a color recognized by the color sensor on screen data corresponding to the executed application; and controlling a function based on the color recognized by the executed application.