How to achieve line drawing with textures mechanic in cocos creator

Hi,
In my game I’m using line drawing with cc.Graphics component but I’m having very hard time finding way to put texture/patterns on lines like rainbow, grass, slim, abstract things, etc…
I’m trying to achieve similar to following game, have a look at it


If anyone has solution with cocos creator then please share, I really need it & I’ll appreciate your help.

Thanks,

you might want to extend the motion streak implementation to solve this.

motion streak??? i think it’s totally irrelevant.
actually it’s possible in html5 canvas api where there is property like context.strokeStyle and setting it to texture will do that stuff
but it’s not the cross platform