implement gradient class and adjust brightness