<static> setTransform(context, translateX, translateY, scaleX, scaleY, skewX, skewY) → {CanvasRenderingContext2D}
Sets the transform of the given canvas to the matrix values provided.
Parameters
Name | Type | Description |
---|---|---|
context | CanvasRenderingContext2D | The context to set the transform on. |
translateX | number | The value to translate horizontally by. |
translateY | number | The value to translate vertically by. |
scaleX | number | The value to scale horizontally by. |
scaleY | number | The value to scale vertically by. |
skewX | number | The value to skew horizontaly by. |
skewY | number | The value to skew vertically by. |
Returns
CanvasRenderingContext2D -
Returns the source context.
- Source code: utils/Canvas.js (Line 171)
Please login to continue.