Bar display

Moin

I would like to practice with my arduino. Would like to make a bar display via a potentiometer a RGB LCd display. When I turn the potentiometer the bar should increase.

Devices.

Arduino UNO
RGB LCD back light groove
Potentiometer.
Does anyone have a TIpp. What this looks like as code? Can anyone show me some code for this?

Also here