Search code examples
html5-canvaskineticjs

Adding Background color to KineticJS Text object


Any Idea how can we add bg color to a Text object added to stage using KineticJS?


Solution

  • Check this : http://www.html5canvastutorials.com/kineticjs/html5-canvas-kineticjs-text-tutorial/

    You probably have to add a background object(A rectangle preferably) and use the fill property on that..and then put the text object over that.

    The entire tutorial is within that link.

    Check it out.