Controling the brightness of an RGBW LED stip with a potentiometer.

I am trying to control a RGBW led strip

What strip us this then?
Please link to it.
Also please post your schematic.
While you are at it please post the code correctly using the icon in the top left of the reply box, edit your first post rather than posting it again.

Did you write that code or did you just find it?