function TextTool(){ //set an icon and a name for the object this.icon = "assets/icons/texttool.jpg"; this.name = "texttool"; var x = 0; var y = 0;