
export class Tool{

    /**
     * 
     * @param txt 
     * @param size 
     * @param color 
     * @param textWidth 
     * @param align 
     * @param x 
     * @param y 
     */
    public static getLabel(
        txt: string,
        size: number,
        color: string = "#ffffff",
        bold:boolean = false,
        align: engine.TEXT_ALIGN = engine.TEXT_ALIGN.LEFT,
        x: number = 0,
        y: number = 0
    ):engine.Label{
        var label = new engine.Label();
        label.fillColor = color;
        label.bold = bold;
        label.size = size;
        label.textAlign = align;
        label.x = x;
        label.y = y;
        label.text = txt;
        return label;
    }
}