How to vertically flip a text canvas using Fabric.js ?
In this article, we are going to see how to vertically flip a canvas text using FabricJS. The canvas means text written is movable and can be stretched according to requirement. Further, the text itself cannot be edited like a textbox.
fabric.Text(text, flipY: Boolean);
Parameters: This function accepts two parameters as mentioned above and described below:
- text: It specifies the text to be written.
- flipY: It specifies whether to flip the text vertically.
Program: This example uses FabricJS to vertically flip a canvas text.