1.15 Interpolation and Transformation
- new drawing mechanisms: curve interpolation and curve transformation.
- new clothing template: dress shirts
Dress Shirt Template
The new dress shirt template comes with many drawing parts and parameters. Also demonstrated in the GIF is the new ability to chain transformations. Previously transformations were asynchronous processes that returned immediately, but now they return promises that can be chained together via .then(), such as shown below:
Note that transformations can apply to any object, as shown by the first transformation which is on the clothing rather than the PC.
Curve Interpolation
The new method interpolateCurve
gives back a point on a curve given partial information
about the point (either its x or y). The demo below shows this in action.
Click and hold somewhere on the canvas below.
Curve Transformation
The new method transformCurve
gives back an intermediate curve when given a starting
and ending curve.
Click and hold somewhere on the canvas below.