2

Two.js seems to only support a single value for a scale, not x,y components. Is it possible to just stretch something horizontally?

msfeldstein
  • 1,080
  • 1
  • 9
  • 18

1 Answers1

2

Yes, under the hood every Two.Group and Two.Polygon has a _matrix object. You can set _matrix.manual and then do a number of other transformations that you can't do with the typical two.js API. Check out this example for a demonstration.

jonobr1
  • 1,013
  • 2
  • 11
  • 22