2

I am trying to achieve Bridge Text Effect by using Fabric.js to display text on CANVAS. I have checked this link. enter image description here

In that reference the Valley text has done. I am trying for Bridge text effect. Please help me, suggestions & references also welcome.

Community
  • 1
  • 1
Shardul
  • 4,266
  • 3
  • 32
  • 50

1 Answers1

2

There is a nice solution in this question using basic canvas api:

How to make rooftext effect and valley text effect in HTML5 (or Fabric.js)

I find it's diffcult to use Fabric.js to recreate it since it seems Fabric.image did not implement context.drawImage(img,sx,sy,swidth,sheight,x,y,width,height) but only context.drawImage(img,x,y,width,height);

I could be wrong as I just take a first quick look of this library 15 minutes ago, have look at the solution any way, hope it helps.

Community
  • 1
  • 1
Mark Ni
  • 2,383
  • 1
  • 27
  • 33