Brightness control

I have been looking everywhere, a lot of people have formulas and widgets to tell the current brightness level But i haven't seen anything to control the brightness through a widget. Is it not possible or has no one done it and shared it online? i would love to be able to change the brightness of my screen through my widget.