First draft for gradient drawing relative to #13. To be rebased.