In this article, we are going to see how to change the border-color of a canvas-like 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, borderColor: String);
Parameters: This function accepts two parameters as mentioned above and described below:
- text: It specifies the text to be written.
- borderColor: It specifies the color of the border.
Program: This example uses FabricJS to change border-color of canvas-like text.