How to put texture in Bezier Curve?

I’m having hard time filling texture in a 130px Bezier Curve draw from cc.Graphics component.
Have a look at the screen shot.

1 Like

You could use ClippingNode.
Use the curve as stencil.
Add the texture as a child to the ClippingNode.

for stencil I need a spriteFrame, how to make spriteFrame out of the given Graphics?