wrote my own gradient routine to replace example

not wanting to use other peoples code, I wrote a gradient fill routine
from scratch and replaced the example one with it