Question
How to specify the size of the brush tool in jsfl
As shown below, the code can only switch to the brush tool, but the thickness cannot be specified. Looking through the API, thickness only applies to the paintBrush tool and cannot set the brush size. Is there a way to implement the function of specifying the size?
var fill = fl.getDocumentDOM().getCustomFill("toolbar");
fill.color = "#FF0000";
fill.thickness = 10;//Cannot be specified here, thickness is invalid
fl.selectTool("brush");
fl.getDocumentDOM().setCustomFill(fill);