Fabric.js Text inverted Property
In this article, we are going to see how to change the inverted of the text canvas using Fabric.js. The canvas means the text written is movable, rotatable, resizable, and can be stretched. Further, the text itself cannot be edited like a textbox.
fabric.Text(text, inverted :boolean );
Parameters: This property accepts one parameter as mentioned above and described below:
- inverted : It is a boolean value that sets the inverted property of the Textbox.
Below is the example that illustrates the use of inverted property in Fabric.js: