Fabric.js fromRgb() Method
The fromRgb() method is used to return a new color object for the specified color in RGB(red, green, and blue) format. Syntax: fromRgb(color) Parameters: This method accepts a parameter as mentioned above and described below: color: This parameter holds the specified string color value in RGB format